Code · Best AI for
Competitive programming
Contest-style problems: clever algorithms under tight time limits, like Codeforces or AtCoder.
Answer: GPT-6.2 Sol (OpenAI)

GPT-6.2 Sol from OpenAI is the best pick today (100/100), followed by GPT-6.2 Astra and GPT-6 Astra. ALE-Bench runs models on real AtCoder heuristic contests and gives them a rating like a human contestant. Speed-up and optimisation tests (GSO, AlgoTune) and a little contest math count too.
Top 15 for competitive programming
Score = share of today's AI models it beats on the tests below (100 = best of all).
- 1GPT-6.2 SolOpenAI · a few tests100
- 2GPT-6.2 AstraOpenAI · a few tests98
- 3GPT-6 AstraOpenAI · plenty of tests98
- 4GPT-6.1 SolOpenAI · a few tests97
- 5GPT-6.1 TerraOpenAI · a few tests97
- 6GPT-6 SolOpenAI · a few tests95
- 7Claude Fable 5.2Anthropic · a few tests95
- 8Gemini 4 CarbonGoogle · a few tests95
- 9Claude Fable 5.1Anthropic · plenty of tests94
- 10GPT-5.6 SolOpenAI · plenty of tests93
- 11Claude Opus 5.5Anthropic · a few tests93
- 12Gemini 4 ArgonGoogle · a few tests91
- 13Claude Opus 5Anthropic · a few tests91
- 14Claude Fable 5Anthropic · plenty of tests91
- 15GPT-5.6 TerraOpenAI · a few tests89
Best overall
Score 100 · OpenAI · $0.206 per job
Best under $1
Score 83 · OpenAI · $0.025 per job
Best open source
Score 89 · Moonshot AI (Kimi) · $0.206 per job
What it costs to solve one hard contest problem
≈ 3K tokens read and 20K written per job, at each model's list API price. Monthly chat-app plans don't charge per job.
| Model | Score | Per job | Per 1,000 jobs | Memory |
|---|---|---|---|---|
| GPT-6.2 Sol | 100 | $0.206 | $206 | 1.1M |
| GPT-6.2 Astra | 98 | $0.824 | $824 | 1.1M |
| GPT-6 Astra | 98 | $1.03 | $1,030 | 1.1M |
| GPT-6.1 Sol | 97 | $0.206 | $206 | 1.1M |
| GPT-6.1 Terrabest value | 97 | $0.103 | $103 | 1.1M |
| GPT-6 Sol | 95 | $0.206 | $206 | 1.1M |
| Claude Fable 5.2 | 95 | $0.824 | $824 | 1M |
| Gemini 4 Carbon | 95 | $0.206 | $206 | 1M |
| Claude Fable 5.1 | 94 | $1.03 | $1,030 | 1M |
| GPT-5.6 Sol | 93 | $0.412 | $412 | 1.1M |
| Claude Opus 5.5 | 93 | $0.412 | $412 | 1M |
| Gemini 4 Argon | 91 | $0.206 | $206 | 1M |
| Claude Opus 5 | 91 | $0.515 | $515 | 1M |
| Claude Fable 5 | 91 | $1.03 | $1,030 | 1M |
| GPT-5.6 Terra | 89 | $0.246 | $246 | 1.1M |
Highlighted: the cheapest model within 15% of the top score.
Tests behind this ranking
Share = how much each test counts towards the score.
| ALE-BenchHow does it stack up against people in long coding contests? | 56% |
| GSO-BenchCan it make real software run faster, like an expert would? | 18% |
| AlgoTuneCan it make math and science code run faster? | 16% |
| OTIS Mock AIME 2024-2025Can it ace a hard practice test for a top math contest? | 11% |
Tips
- Reasoning ('thinking') modes matter a lot here. They write long scratch work before answering, which costs more tokens.
Quick answers
Which AI is best at competitive programming?
GPT-6.2 Sol from OpenAI is the best pick today (100/100), followed by GPT-6.2 Astra and GPT-6 Astra.
About GPT-6.2 Sol →What's the best cheap AI for competitive programming?
GPT-5.6 Luna: 83/100 for about $0.45 per million tokens. One job (solve one hard contest problem) costs about $0.025.
See the details →What's the best open-source AI for competitive programming?
Kimi K3.1 Pro from Moonshot AI (Kimi), scoring 89/100. You can download it and run it yourself.
See the details →How much does it cost to solve one hard contest problem with AI?
With GPT-6.2 Sol, about $0.206 (≈ 3K tokens read, 20K written, at list API prices). GPT-6.1 Terra scores nearly as well for $0.103. Chat apps on a monthly plan don't charge per job.
How is this decided?
ALE-Bench runs models on real AtCoder heuristic contests and gives them a rating like a human contestant. Speed-up and optimisation tests (GSO, AlgoTune) and a little contest math count too.
How scores work →