Practice on Toph

Participate in exhilarating programming contests, solve unique algorithm and data structure challenges and be a part of an awesome community.

Today Is the Day!

Limits 1s, 512 MB

When a year begins, we become so pumped and motivated. We say to ourselves, this is the year when we will turn things around! Usually, this feeling wither away after a month or two and we lose our motivation. But not this year!

Today, we will remind ourselves that we still have a lot of days to go in this year to do a whole bunch of amazing stuff. And, we will start by solving a problem.

In this problem, print the day of the year August 2, 2019 is. For your convenience, if today was January 1, 2019, you just had to print 1 for your answer.

A rhyme might help you to solve the problems:

“Thirty days hath September,

April, June, and November;

All the rest have thirty-one,

Excepting February alone,

And that has twenty-eight days clear

And twenty-nine in each leap year”


There is no input for this problem.


Print a single integer, the answer to your problem.


    88% Solution Ratio

    Faisal_AlMamunEarliest, 5M ago

    Faisal_AlMamunFastest, 0.0s

    A.LabsteinLightest, 0 B

    shahed95Shortest, 3B


    Login to submit