All submissions for this problem are available.
According to Gregorian Calendar, it was Saturday on the date 01/01/2000. If any date of this year is input, write a program to display the day it falls on.
The first line contains an integer T denoting total number of testcases. Then follow T lines, each line contains an integer date of the format ddmm.
For each test case, output a single line containing the day of the date in lowercase letters.
Input: 2 0511 1206 Output: sunday monday
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, PYP3, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.