Nathan Coulas

DMOJ Solutions

Welcome to my DMOJ solutions page! Here you can find my solutions to various competitive programming problems from the DMOJ platform.

Fibonacci Sequence

fibonacci
CPP17 16 May, 2020

CCC '13 S5 - Factor Solitaire

ccc13s5
CPP17 27 May, 2020

DMOPC '13 Contest 1 P4 - AFK

dmopc13c1p4
CPP17 17 May, 2020

CCC '03 S3 - Floor Plan

ccc03s3
CPP11 12 May, 2020

MWC '15 #2 P2: Towering Towers

mwc15c2p2
CPP17 12 May, 2020

CCC '08 S3 - Maze

ccc08s3
CPP17 12 May, 2020

CCC '01 S3 - Strategic Bombing

ccc01s3
CPP17 13 May, 2020

Oversleep

hci16oversleep
CPP17 09 Jun, 2020

CCC '07 S3 - Friends

ccc07s3
CPP11 01 Aug, 2020

CCC '07 S4 - Waterpark

ccc07s4
CPP11 03 Aug, 2020

CCC '00 S4 - Golf

ccc00s4
CPP11 02 Aug, 2020

Grid 1

dph
CPP11 02 Aug, 2020

CCC '05 S4 - Pyramid Message Scheme

ccc05s4
CPP11 02 Aug, 2020

CCC '15 S3 - Gates

ccc15s3
CPP11 03 Aug, 2020

CCC '12 S5 - Mouse Journey

ccc12s5
CPP11 10 Aug, 2020

Fast Bit Counting

fastbit
CPP11 16 Aug, 2020

Too Simple

toosimple
JAVA8 08 Nov, 2019

Python Infinite Loop

shortest1
PYPY 02 Jun, 2020

Bubble Sort

sort1
CPP17 17 Feb, 2020

CCC '18 J5 - Choose your own path

ccc18j5
CPP17 09 Apr, 2020

DMOPC '14 Contest 1 P3 - New Students

dmopc14c1p3
CPP17 02 May, 2020

DMOPC '14 Contest 2 P4 - Deforestation

dmopc14c2p4
CPP17 11 May, 2020

CCC '20 S2 - Escape Room

ccc20s2
CPP17 12 May, 2020

DMOPC '19 Contest 7 P1 - Hydrocarbons

dmopc19c7p1
CPP17 12 May, 2020

Knapsack 1

dpd
CPP17 25 May, 2020

Knapsack 2

dpe
CPP17 27 May, 2020

Frog 1

dpa
CPP11 02 Aug, 2020

CCC '14 S3 - The Geneva Confection

ccc14s3
CPP11 04 Aug, 2020

CCC '10 J5 - Knight Hop

ccc10j5
CPP11 10 Aug, 2020

Back From Summer '17 P2: Crayola Lightsaber

bfs17p2
CPP17 01 Jun, 2020

CCC '13 J2 - Rotating letters

ccc13j2
JAVA8 05 Nov, 2019

CCC '11 S2 - Multiple Choice

ccc11s2
JAVA8 06 Nov, 2019

CCC '01 S1 - Keeping Score

ccc01s1
JAVA8 30 Nov, 2019

CCC '14 S1 - Party Invitation

ccc14s1
JAVA8 04 Dec, 2019

CCC '11 S1 - English or French?

ccc11s1
JAVA8 04 Dec, 2019

Hailstone Numbers

hailstone
JAVA8 18 Dec, 2019

CCC '03 S1 - Snakes and Ladders

ccc03s1
JAVA8 07 Feb, 2020

CCC '13 S2 - Bridge Transport

ccc13s2
CPP17 13 Feb, 2020

CCC '96 S1 - Deficient, Perfect, and Abundant

ccc96s1
CPP17 25 Feb, 2020

List Minimum (Hard)

bf1hard
CPP17 12 Apr, 2020

CCC '09 S1 - Cool Numbers

ccc09s1
CPP17 17 Feb, 2020

CCC '08 S1 - It's Cold Here!

ccc08s1
CPP17 18 Feb, 2020

VM7WC '16 #3 Silver - Can Shahir even get there?!

vmss7wc16c3p2
CPP17 20 Feb, 2020

ECOO '15 R1 P1 - When You Eat Your Smarties

ecoo15r1p1
CPP17 03 Mar, 2020

ECOO '13 R1 P1 - Take a Number

ecoo13r1p1
CPP17 15 Mar, 2020

ECOO '16 R1 P1 - Pass or Fail

ecoo16r1p1
CPP17 17 Mar, 2020

CCC '17 S2 - High Tide, Low Tide

ccc17s2
CPP17 08 Apr, 2020

CCC '00 S1 - Slot Machines

ccc00s1
CPP17 08 Apr, 2020

CCC '05 J3 - Returning Home

ccc05j3
CPP17 16 Apr, 2020

Mock CCC '20 S1 - War

mccc1s1
CPP17 25 Apr, 2020

CCC '20 J4 - Cyclic Shifts

ccc20j4
CPP17 03 May, 2020

DMOPC '19 Contest 1 P1 - Test Scores

dmopc19c1p1
CPP17 04 May, 2020

DMOPC '14 Contest 1 P1 - Median Mark

dmopc14c1p1
CPP17 04 May, 2020

CCC '14 S2 - Assigning Partners

ccc14s2
CPP17 06 May, 2020

Equation Solver

gfssoc2j3
CPP17 06 May, 2020

COCI '14 Contest 4 #1 Cesta

coci14c4p1
CPP17 10 May, 2020

Mock CCC '20 Contest 2 S2 - 4D BBST on a DP

mccc2s2
CPP17 14 May, 2020

CCC '01 S2 - Spirals

ccc01s2
CPP17 30 May, 2020

CCC '16 S2 - Tandem Bicycle

ccc16s2
CPP11 31 Jul, 2020

CCC '07 S2 - Boxes

ccc07s2
CPP11 31 Jul, 2020

CCC '05 S1 - Snow Calls

ccc05s1
CPP11 02 Aug, 2020

CCC '05 S2 - Mouse Move

ccc05s2
CPP11 02 Aug, 2020

CCC '15 S2 - Jerseys

ccc15s2
CPP11 03 Aug, 2020

DMOPC '17 Contest 4 P1 - Ribbon Colouring Fun

dmopc17c4p1
CPP11 16 Aug, 2020

List Minimum

bf1
JAVA8 06 Nov, 2019

Boolean

boolean
JAVA8 06 Nov, 2019

CCC '16 S1 - Ragaman

ccc16s1
CPP17 10 Jun, 2020

A Plus B

aplusb
JAVA8 04 Nov, 2019

CCC '13 J1 - Next in line

ccc13j1
JAVA8 04 Nov, 2019

CCC '14 J1 - Triangle Times

ccc14j1
JAVA8 08 Dec, 2019

CCC '07 J1 - Who is in the Middle?

ccc07j1
JAVA8 04 Nov, 2019

CCC '04 J1 - Squares

ccc04j1
JAVA8 04 Nov, 2019

CCC '12 J1 - Speed fines are not fine!

ccc12j1
JAVA8 05 Nov, 2019

CCC '11 J1 - Which Alien?

ccc11j1
JAVA8 05 Nov, 2019

CCC '08 J1 - Body Mass Index

ccc08j1
JAVA8 05 Nov, 2019

CCC '14 J2 - Vote Count

ccc14j2
JAVA8 05 Nov, 2019

CCC '15 J1 - Special Day

ccc15j1
JAVA8 05 Nov, 2019

CCC '17 J1 - Quadrant Selection

ccc17j1
JAVA8 05 Nov, 2019

CCC '16 J1 - Tournament Selection

ccc16j1
JAVA8 06 Nov, 2019

CCC '12 J2 - Sounds fishy!

ccc12j2
JAVA8 06 Nov, 2019

CCC '15 J2 - Happy or Sad

ccc15j2
JAVA8 06 Nov, 2019

CCC '06 J1 - Canadian Calorie Counting

ccc06j1
JAVA8 06 Nov, 2019

CCC '17 J2 - Shifty Sum

ccc17j2
JAVA8 06 Nov, 2019

CCC '10 J1 - What is n, Daddy?

ccc10j1
JAVA8 06 Nov, 2019

CCC '18 J3 - Are we there yet?

ccc18j3
JAVA8 03 Dec, 2019

Back to School '16: Harambe

bts16p1
JAVA8 18 Dec, 2019

Mock CCC '20 Contest 1 J1 - A Rage Tree Problem

mockccc2020c1j1
JAVA8 11 Feb, 2020

Mock CCC '20 Contest 1 J2 - A Simplex Problem

mockccc2020c1j2
JAVA8 11 Feb, 2020

CCC '17 S1 - Sum Game

ccc17s1
JAVA8 12 Feb, 2020

Wesley's Anger Contest 3 Problem 1 - Snow Day Predictor

wac3p1
CPP17 13 Feb, 2020

List Minimum (Easy)

bf1easy
CPP17 14 Mar, 2020

CCC '20 J1 - Dog Treats

ccc20j1
CPP17 02 May, 2020

CCC '20 J2 - Epidemiology

ccc20j2
CPP17 07 Apr, 2020

CCC '20 J3 - Art

ccc20j3
CPP17 08 Apr, 2020

CCC '20 S1 - Surmising a Sprinter's Speed

ccc20s1
CPP17 22 Apr, 2020

CCC '02 J2 - AmeriCanadian

ccc02j2
CPP17 10 Apr, 2020

CCC '14 J3 - Double Dice

ccc14j3
CPP11 17 Apr, 2020

Art Academy 0: Prologue

art0
CPP17 25 Apr, 2020

DMOPC '14 Contest 1 P2 - Tiles

dmopc14c1p2
CPP11 02 May, 2020

DMOPC '19 Contest 1 P0 - Range Finding

dmopc19c1p0
CPP17 04 May, 2020

Mock CCC '19 Contest 1 J1 - Pusheen's Report Card

nccc6j1
CPP11 04 May, 2020

Mock CCC '19 Contest 1 J2 - Pusheen OCR

nccc6j2
CPP17 04 May, 2020

DMOPC '19 Contest 6 P0 - Trivial Math

dmopc19c6p0
CPP11 04 May, 2020

Mock CCC '20 Contest 2 S1 - Arithmetic Hybercube

mccc2s1
CPP17 05 May, 2020

A Minus B

aminusb
CPP17 11 May, 2020

DMOPC '19 Contest 4 P0 - Yikes

dmopc19c4p0
CPP11 12 May, 2020

16 BIT S/W ONLY

16bitswonly
CPP17 12 May, 2020

CCC '09 J1 - ISBN

ccc09j1
CPP17 14 May, 2020

CCC '18 J1 - Telemarketer or not?

ccc18j1
CPP17 15 May, 2020

DMOPC '18 Contest 4 P0 - Dr. Henri and Seeing Stars

dmopc18c4p0
CPP17 27 May, 2020

CCC '12 S1 - Don't pass me the ball!

ccc12s1
CPP17 03 Jun, 2020

CCC '19 S1 - Flipper

ccc19s1
CPP17 11 Jun, 2020

CCC '07 S1 - Federal Voting Age

ccc07s1
CPP11 31 Jul, 2020

CCC '15 S1 - Zero That Out

ccc15s1
CPP11 03 Aug, 2020

DMOPC '19 Contest 7 P0 - Contest Feedback

dmopc19c7p0
CPP11 04 Aug, 2020

The April Fools Warmup Problem

acc4p0
CPP03 13 Feb, 2020

Another Contest 4 Problem 6 - One Billion Views

acc4p6
CPP17 11 Jun, 2020

Hello, World!

helloworld
CPP11 31 Jul, 2020