Computer Engineering · Sharif University

I solve hard problems.
I teach others to do the same.

Currently remixing hard problems.

I’m Ali Safary — a competitive programmer, educator, and software engineer working where algorithms, systems, and ambitious people meet.

Good. Those are usually the interesting ones. CV refreshed Aug 2026

2×IOI medalist

3×ICPC regional champion

16IOI gold & silver medals earned by students

18.01GPA · out of 20

A very short origin story

Built on competition. Multiplied through teaching.

From the world stage to the classroom, I care about rigorous thinking, clean execution, and helping strong teams become exceptional ones.

  1. Teaching impact · Since 2019

    16 medals

    Training the next generation.

    Students I taught earned 7 IOI gold and 9 IOI silver medals. As a tutor, I also mentored students to 2 IOI silver, 1 IOI bronze, and 5 INOI gold medals.

  2. Problem solving · Codeforces

    Top 0.05%

    Legendary Grandmaster.

    Ranked 70th worldwide when the source CV was updated in November 2025.

    View profile

Selected experiments

Things I’ve made behave

A few projects where algorithms left the whiteboard and met the real world.

  1. C++ 2023

    C-Minus Compiler

    A compiler for a minimal subset of C++, including calling-convention handling, scanning, and lexical analysis.

  2. C / SDL2 2021

    State.io

    A graphical strategy game in C and SDL2, using Voronoi diagrams for random map generation.

  3. C / C++ 2021

    Graph Theory for Olympiad

    A graph theory book in Persian for Olympiad students, paired with reference implementations.

  4. Java / JavaFX 2022

    Civilization V

    A graphical strategy game in Java and JavaFX, with networking features implemented through socket programming.

The execution trace

How I got here,
more or less.

Education, engineering, competitive programming, and a lot of explaining ideas at a whiteboard.

Teacher

Informatics Olympiad · Tehran, Iran

Teaching national-team preparation and gold-medalist camps at Allameh Helli 1, Farzanegan 1, Allameh Tabatabaei, and Alborz high schools. Students I trained earned 7 IOI gold and 9 IOI silver medals.

  • Algorithms
  • Mentorship
  • IOI preparation

Tutor

Informatics Olympiad · Tehran, Iran

Mentoring students who achieved 2 IOI silver medals, 1 IOI bronze medal, and 5 Iranian National Olympiad in Informatics gold medals.

  • Tutoring
  • Olympiad strategy
  • Student development

Contest Designer

Competitive Programming Contests · Iran

Designing problems for INOI medal and team selection contests, the Tabriz University ICPC bootcamp, and the ICPC Asia Tehran online contest.

  • Problem setting
  • Editorials
  • ICPC

Teaching Assistant

Sharif University of Technology · Tehran, Iran

Supporting courses in algorithms, data structures, programming, discrete structures, and theory of machines and languages across multiple semesters.

  • Algorithms
  • Data structures
  • Discrete math

Contest Coordinator

Quera · Tehran, Iran

Prepared algorithmic programming contests, including the international Technology Olympiad selection and final rounds.

  • Contest operations
  • Algorithms
  • Selection rounds

Deputy Leader, Iranian Team

International Olympiad in Informatics · Alexandria, Egypt

Helped lead the team to 9th place overall, with one gold, two silver, and one bronze medal.

  • Team leadership
  • IOI 2024

Full-Stack Intern

Rahnema College · Tehran, Iran

Built core features for an Android social app with a location-based feed, using Node.js and React Native in a six-person technical team.

  • Node.js
  • React Native
  • Mobile

Bachelor, Computer Engineering

Sharif University of Technology · Tehran, Iran

GPA 18.01 / 20.00

Plot twists & trophies

A few nice surprises

2022—2024

ICPC Asia Tehran Regional

Champion · three consecutive editions

2022

Codecup

Algorithm Track Winner

2019—2020

Iranian Olympiad in Informatics

Gold Medal · two editions

Pass it forward

Teaching notes

The best test for an idea: can you make it click for someone else?

Nov 2019 — Present

Olympiad Teacher

Tehran’s leading high schools · Tehran, Iran

National-team preparation and gold-medalist camps across four schools.

Students earned 7 IOI gold and 9 IOI silver medals.

Nov 2023 — Present

Olympiad Tutor

Independent mentorship · Tehran, Iran

One-to-one strategy, problem solving, and long-term student development.

2 IOI silver, 1 IOI bronze, and 5 INOI gold medals.

Sep 2022 — Present

Teaching Assistant

Sharif University of Technology · Tehran, Iran

Algorithms, data structures, programming, discrete structures, and theory courses.

What’s in the backpack?

Tools, tricks & rabbit holes.

Languages

  • C / C++
  • Python
  • Java
  • JavaScript

AI / ML

  • PyTorch
  • Keras
  • NumPy & Pandas
  • scikit-learn

Web

  • Django
  • React
  • Spring Boot
  • Node.js

Systems & data

  • PostgreSQL
  • MongoDB
  • Docker & Linux
  • Git
  • CMake
  • GDB
  • LaTeX

explore --favorite-courses

  • Massive Data Algorithms20.0
  • Machine Learning20.0
  • Game Theory20.0
  • Data Structures & Algorithms20.0
  • Theory of Machines & Languages20.0
  • Graph Theory19.5
  • Design of Algorithms20.0
  • Discrete Structures20.0

End of file. Start of conversation?

Have a difficult problem?

Good. Those are usually the interesting ones.

alisafary2003@gmail.com

Tehran, Iran · Internet-adjacent