• DMOJ
  • Home
  • Problems
  • Submissions
  • Users
  • Contests
  • About
    • Status
    • Tips
    • API
    • Github
Log in  or  Sign up

Welcome to the DMOJ: Modern Online Judge!

The DMOJ is a modern contest platform and archive of programming problems. It's also entirely open source.

So far, 125294 developers have submitted to 4250 problems a total of 4588103 times, using 69 languages.

If this is your first visit, please register an account. Then, try the Hello, World! problem.

  • Blog
  • Events

News

Yet Another Contest 3

Josh, Nils_Emmenegger, RandomLB posted on May 21, 2022, 11:35 p.m. 0

YAC Banner

Hi everyone!

It's yet another time for yet another Yet Another Contest!

The contest will run from Friday, May 27th to Monday, May 30th. Participants will have a 3-hour window to complete 5 problems.

Note that the contest is not rated for users with at least 2600 rating.

For more details, please see the contest page.

Good luck and have fun!

Spring Coding Bowl 2022

ArtyKing12, qwertytown4life, moayyadshahid1, Dwin2020, shayaf84 posted on May 20, 2022, 10:52 p.m. 1

Hi everyone,

We are proud to present the third annual Spring Coding Bowl, a 3-hour, 5-problem competition open to all high school students. The contest will run from 12:00am on Saturday, May 28 to 11:59pm on Wednesday, June 1 (Eastern Daylight Time).

To register, please follow the instructions on our official contest webpage. The contest will be hosted here on DMOJ, and you will have to submit your personal information when joining this organization. Please ensure that you register before 6:00pm May 27.

An official honour roll will be published on the contest page, the top scorers will be named as "Coders of the Year", and schools will be ranked by the sum of the three highest scores from each school. As such, please be sure to tell other students in your school to participate (perhaps get your school's coding club involved)!

If you would like to prepare, you can try to solve last year's problems here on DMOJ.

Good luck to all participants!

UCC Coding and Algorithms Academy.

SAC Code Challenge 5 2022

maxcruickshanks posted on May 18, 2022, 6:27 p.m. 0

Thanks for participating in the final SAC Code Challenge!

The top 5 contestants from the main contest that win Discord Nitro are

  1. ecnerwal
  2. xiaowuc1 (the third time they have placed in the top 5 for this series!)
  3. y0105w49 (the second time they have placed in the top 5 for this series!)
  4. ksun48
  5. TechnobladeNeverDies (the second time they placed in the top 5 for this series!)

The top 5 contestants from the junior contest are

  1. xiaowuc1 (the third time they have placed in the top 5 for this series!)
  2. BalintR (the second time they have placed in the top 5 for this series!)
  3. explosion
  4. ecnerwal
  5. ksun48

Thank you for a great year! Be well.


Hi, everyone again (once more again for a second time for a final time)!

On Friday, May 20th, 2022, we'll be running the fifth and final SAC Code Challenge for this year!

The top 5 competitors in the main contest will receive 1 month of Discord Nitro or 2 months of Discord Nitro Classic.

To redeem your prize after the contest, please join the DMOJ Discord and verify your account belongs to you; then, direct message papkorio#6647.

You can write both contests since there is no overlap in problems.

For both of these contests, you can write them in any two-hour window between May 20th, 00:00 EDT, and May 23rd, 00:00 EDT.

You can find more details about the junior contest on its contest page and the main contest on its contest page.

We hope to see you soon!
SAC Code Culture.

DMOPC '21 May Contest

zhouzixiang2004, Riolku, 4fecta posted on May 9, 2022, 2:10 p.m. 0

We hope the problems were interesting this time around too! As usual, special congrats to the top 5 contestants:

  1. Gennady (perfect score!)
  2. ecnerwal
  3. hitonanode
  4. d
  5. ksun48

Get excited for the last DMOPC of the season coming next month!


Hello again (for the 9th time)!

The contest will run from Friday, May 13th to Monday, May 16th (inclusive of both days).

Anyone with a DMOJ account is welcome to participate, and anyone without one is welcome to register and participate.

Contestants may participate in any 3-hour window between 00:00:00 EDT of May 13th and 00:00:00 EDT of May 17th.

Please see the contest page for more details.

GLHF :)

DMOPC '21 April Contest

zhouzixiang2004, Riolku, 4fecta posted on April 21, 2022, 12:15 a.m. 0

That was an intense set of problems! Special congrats to the top 5 contestants:

  1. Gennady
  2. ksun48
  3. wygzgyw
  4. hitonanode
  5. Mr_Eight

See you again in May...


DMOPC is coming up again!

The contest will run from Friday, April 22nd to Monday, April 25th (inclusive of both days).

Anyone with a DMOJ account is welcome to participate, and anyone without one is welcome to register and participate.

Contestants may participate in any 3-hour window between 00:00:00 EDT of April 22nd and 00:00:00 EDT of April 26th.

Please see the contest page for more details.

Good luck and have fun!

Modern Assessment on Logic and Deduction 1

dawangk, Lost posted on April 12, 2022, 7:23 p.m. 0


Hi everyone!

From Friday, April 15th, to Monday, April 18th, we will be hosting the first-ever MALD contest!

Participants will have a 3-hour window to complete 6 problems.

Note that this contest is unrated.

For more details, please see the contest page.

Good luck and have fun malding!

Yet Another Contest 2

Josh, Nils_Emmenegger, RandomLB posted on March 28, 2022, 10:54 a.m. 0

YAC Banner

Hi everyone!

It's time for yet another Yet Another Contest!

The contest will run from Friday, April 1st to Monday, April 4th. Participants will have a 3-hour window to complete 6 problems.

Note that the contest is not rated for users with at least 2600 rating.

For more details, please see the contest page.

Good luck and have fun!

DMOPC '21 March Contest

zhouzixiang2004, Riolku, 4fecta posted on March 20, 2022, 1:29 p.m. 0

We hope you found the problems this time both interesting and challenging! Once again, special congrats to the top 5 contestants:

  1. Gennady
  2. wygzgyw
  3. Mr_Eight
  4. yuyue
  5. ksun48

We'll be back soon next month!


Another installment of everyone's favourite contest series is on its way...

The contest will run from Friday, March 25th to Monday, March 28th (inclusive of both days).

Anyone with a DMOJ account is welcome to participate, and anyone without one is welcome to register and participate.

Contestants may participate in any 3-hour window between 00:00:00 EDT of March 25th and 00:00:00 EDT of March 29th. Please see the contest page for more details.

Good luck and have fun!

An Animal Contest 6

Riolku, hewmatt10, WilliamWu277, andrewtam, julian33, Nils_Emmenegger, sjay05, ThingExplainer, Tony1234, rickyqin005, danielz1000 posted on March 17, 2022, 5:51 p.m. 0

Hi everyone!

From Friday, March 18th to Monday, March 21st, we'll be hosting An Animal Contest 6. Participants will have a 3-hour window to complete 6 problems centred around grizzly bears! See the contest page for more details.

Note that AAC6 is rated for all participants.

We hope you enjoy the problems and have fun!

See you soon!

SAC Code Challenge 4 2022

maxcruickshanks posted on March 8, 2022, 11:52 a.m. 0

Thanks for participating!

The top 5 contestants from the main contest that win Discord Nitro are

  1. y0105w49
  2. Dormi
  3. Buckhorn
  4. Josh (the second time they have placed in the top 5 for this series!)
  5. TechnobladeNeverDies

The top 5 contestants from the junior contest are

  1. xiaowuc1 (the second time they have placed in the top 5 for this series!)
  2. y0105w49
  3. Josh (the second time they have placed in the top 5 for this series!)
  4. BalintR
  5. Dormi

We hope to see you again in May!


Hi, everyone again (once more for a second time)!

On Friday, March 11th, 2022, we'll be running the fourth SAC Code Challenge for this year!

Additionally, for the main contest, a prize pool will be introduced!

The top 5 competitors in the main contest will receive 1 month of Discord Nitro or 2 months of Discord Nitro Classic.

To redeem your prize after the contest, please join the DMOJ Discord and verify your account belongs to you; then, direct message papkorio#6647.

You can write both contests since there is no overlap in problems.

For both of these contests, you can write them in any two-hour window between March 11th, 00:00 EST, and March 14th, 00:00 EDT.

You can find more details about the junior contest on its contest page and the main contest on its contest page.

We hope to see you soon!
SAC Code Culture.

  • «
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 21
  • 22
  • »

Ongoing contests

2022 Canadian Computing Olympiad - Day 1 Mirror
Ends in 10 days 03:04:42.
Yet Another Contest 3
Ends in 3 days 03:04:42.
2022 Canadian Computing Olympiad - Day 2 Mirror
Ends in 10 days 03:04:42.

Comment stream Discord

  • ivan79 → An Animal Contest 2 P0 - Koala Matchmaking
  • TwoBigBlackHairyDonkeyBalls → CCC '20 J4 - Cyclic Shifts
  • X_Ray → CCO '17 P3 - Vera and Modern Art
  • Metco → Yet Another Contest 3
  • linkylinky → Hello, World! (Hard)
  • X_Ray → Spring Coding Bowl 2022
  • Xaalderan → CCC '06 J1 - Canadian Calorie Counting
  • Elina_J → CCC '00 J1 - Calendar
  • UnicornMagic → COCI '18 Contest 4 #1 Elder
  • dannymccaslin → ECOO '17 R1 P1 - Munch 'n' Brunch
RSS / Atom

New problems

  • CCO '22 P4 - Bi-ing Lottery Treekets
  • CCO '22 P5 - Phone Plans
  • CCO '22 P6 - Good Game
  • Age Demographic
  • CCO '22 P1 - Alternating Heights
  • CCO '22 P2 - Rainy Markets
  • CCO '22 P3 - Double Attendance
RSS / Atom

fork us on Github | like us on Facebook | help us translate | terms of service |