Day of the Week

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Calculate the day of the week. 0 for Sunday, 1 for Monday ... 6 for Saturday.

Input is year month day

If you use a language's built in ability to do this, please put (date) after your name.

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

2008 5 21
2008 6 13

Sample output:

3
5

Sample input:_

3165 7 5
4548 6 9
3358 6 2
4692 4 19
5225 6 5
5277 1 13
5330 12 22
3821 6 6
4056 11 6
2009 7 17
2673 3 15
1879 7 23
4406 11 27
4773 11 15
2312 4 2
5360 5 23
4029 3 21
4786 7 1
1961 3 8
3661 11 6
4756 4 26
4438 4 2
4552 9 18
4494 10 13
3727 9 10
5501 12 5
1854 5 11
4443 7 19
2479 5 6
3027 9 9
4312 2 27
4407 3 20
3530 6 22
5558 10 21
3186 9 25
4691 5 5
4673 3 29
2042 3 9
2451 8 3
5162 5 1
2448 2 20
2319 7 1
2504 3 26
5518 10 29
3664 8 7
2257 1 5
5728 3 12
3558 3 11
2673 9 7
2153 1 15
2550 8 31
4856 10 10
2343 12 7
3469 1 5
2967 11 14
4558 10 2
5185 8 22
3807 12 24
3916 12 28
4581 8 26
4505 11 25
2053 1 27
4347 6 16
4214 1 16
1976 12 21
3832 9 8
3009 2 14
4410 12 19
1894 4 27
3639 9 9
4957 8 14
2454 12 16
3626 12 11
3227 3 10
5317 6 22
2454 10 11
2988 6 16
4035 7 2
2792 11 3
2620 9 7
3916 10 30
4075 5 17
3280 6 16
3419 7 20
3957 5 8
5602 3 30
2054 2 11
5259 11 9
3557 10 20
2347 5 2
2190 5 2
2071 8 28
4350 1 1
2944 6 3
5586 8 24
2435 5 3
2166 1 24
5301 10 12
3967 7 17
2252 12 10

Sample output:

1
0
5
2
4
3
5
3
1
5
6
3
1
4
2
5
3
2
3
0
4
5
1
3
3
4
4
0
6
0
2
2
0
2
4
2
6
0
4
2
4
2
3
2
4
1
5
2
0
1
1
2
2
2
6
1
4
4
4
0
3
1
1
0
2
6
2
0
5
5
0
3
5
3
2
0
1
1
2
4
1
5
0
2
3
6
3
0
0
5
0
5
0
3
0
4
5
3
1
5

Sample input:_

4003 2 26
2993 4 13
2411 8 25
1843 2 14
1855 2 5
4827 7 2
3981 2 5
2021 5 29
4164 7 25
4957 1 20
4576 8 22
4012 12 23
5017 4 17
3613 1 23
4374 12 21
3991 12 3
3714 5 15
5766 11 11
2073 8 27
5463 9 13
4643 12 15
4873 6 19
4839 8 8
5412 5 28
3823 6 12
5000 1 5
4616 12 29
3807 2 12
3820 4 27
5516 7 20
4766 6 10
3185 1 7
5216 8 31
4267 4 6
3182 3 7
4945 1 9
5354 3 27
5366 8 22
3198 8 22
4694 5 27
4876 7 2
4206 5 29
4847 3 22
2574 4 29
4550 3 10
2528 10 10
4020 9 1
2302 12 22
4777 5 18
3184 1 15
2486 5 11
4521 8 25
3162 6 30
2768 3 25
3579 9 24
4887 10 12
4962 5 25
3167 12 29
3270 11 2
3889 5 3
3501 12 14
4716 7 30
2529 1 24
5695 3 7
2206 11 5
3678 12 20
4306 11 11
4814 12 17
2235 6 15
2762 12 10
2013 8 16
3814 11 16
5281 7 28
5003 7 20
2592 8 31
4895 9 5
2838 5 31
5223 3 30
4956 11 25
3105 5 6
4079 4 18
4763 12 31
2297 6 29
3214 4 15
2516 3 22
5024 3 18
3253 9 16
2857 4 23
3211 8 29
4147 4 1
3010 7 15
2720 2 21
4180 10 8
5569 2 10
2721 1 23
2761 1 15
4802 8 19
4782 4 15
5324 9 15
5090 2 27

Sample output:

3
6
4
2
1
5
4
6
3
4
4
0
4
3
6
2
2
2
0
0
5
1
1
4
4
0
0
4
4
4
5
1
3
6
0
6
3
5
6
0
4
4
5
5
2
0
2
1
3
0
6
1
6
1
1
0
2
5
0
5
6
0
1
1
3
2
0
3
1
1
5
3
1
3
5
1
1
4
4
6
2
2
2
2
0
4
2
1
1
6
0
6
0
1
0
0
1
4
5
4

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1kurimura411.13742008/05/26 03:03:000B / 26B / 12B
2ksk411.06782008/05/26 22:18:090B / 26B / 12B
3flagitious(date)480.70392008/05/22 03:52:530B / 28B / 17B
4leonid480.72052008/05/23 10:17:170B / 28B / 17B
5eban480.69722008/05/26 13:14:580B / 28B / 17B
6pooq(date)480.83512008/05/30 22:37:560B / 28B / 17B
7kaki501.16502008/05/22 22:12:220B / 30B / 15B
8flagitious730.25562008/05/22 10:50:140B / 37B / 32B
9tabasa990.65912008/05/23 20:57:063B / ?B / ?B
10flagitious(embed)1290.07832008/05/22 04:08:3480B / 23B / 23B
11tabasa()1370.21842008/05/24 15:29:340B / ?B / ?B

Perl _

RankUserSizeTimeDateStatistics
1ott740.41872008/05/24 04:03:410B / 39B / 29B
2teebee590.13322011/03/06 13:27:500B / 31B / 24B

Python _

RankUserSizeTimeDateStatistics
1Defenestrator690.63762008/05/30 14:19:240B / 46B / 18B
2zetamatta840.89972008/05/28 00:09:420B / 60B / 20B
3Hendrik(date)1150.17842008/06/01 23:07:390B / 80B / 29B
4Hendrik1240.21912008/05/22 23:10:300B / 83B / 34B
5wilkes1010.04252010/11/17 07:37:161B / 72B / 20B

PHP _

RankUserSizeTimeDateStatistics
1m-satyr(date)630.34542008/05/28 21:37:480B / 36B / 26B

Scheme _

RankUserSizeTimeDateStatistics
1m-satyr(date)970.36412008/06/04 14:58:010B / 62B / 30B
2Air Hadoken2640.14692008/06/04 12:36:050B / ?B / ?B
3m-satyr(date)750.58952008/06/27 19:05:080B / 51B / 23B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima(date)1480.47432008/09/25 09:55:170B / 103B / 37B

Io _

RankUserSizeTimeDateStatistics
1murky-satyr1472.95822008/06/03 07:15:170B / 101B / 42B
251b1542.60912008/05/28 18:09:550B / 95B / 55B
3pooq1692.75292008/05/25 19:39:100B / 114B / 48B
4murky-satyr1412.79392008/06/06 09:21:450B / 93B / 44B
551b1462.72922008/06/05 23:34:500B / 100B / 42B

JavaScript _

RankUserSizeTimeDateStatistics
1m-satyr(date)460.15342008/05/23 04:50:230B / 29B / 16B
2nn(date)460.11262008/05/23 11:16:560B / 31B / 14B
3REM850.11792008/05/25 20:41:230B / ?B / ?B
4murky-satyr1030.12102008/06/03 01:27:140B / 51B / 51B
5nn1040.06562008/06/02 12:04:370B / 58B / 45B
6nn960.09852008/06/05 22:51:180B / 56B / 39B

Lua _

RankUserSizeTimeDateStatistics
1murky-satyr1300.04512008/06/02 10:49:390B / 78B / 43B
2pooq1470.06372008/05/25 15:07:430B / 85B / 51B
3tabasa2720.07042008/05/25 12:33:0516B / ?B / ?B
4murky-satyr1170.05662008/06/05 23:27:070B / 71B / 39B

Tcl _

RankUserSizeTimeDateStatistics
1murky-satyr1140.13832008/07/11 21:30:590B / 62B / 37B

Smalltalk _

RankUserSizeTimeDateStatistics
1m-satyr(date)590.60812008/05/28 07:51:430B / 43B / 15B

Forth _

RankUserSizeTimeDateStatistics
151b1470.13152008/05/23 19:47:300B / 79B / 25B
251b1440.08632008/06/05 05:56:060B / 78B / 24B

BASIC _

RankUserSizeTimeDateStatistics
1pooq1050.16472008/05/24 19:29:320B / 64B / 35B
2*yuko*980.00542011/03/05 13:45:050B / 56B / 41B

Erlang _

RankUserSizeTimeDateStatistics
151b(date)1411.01952008/05/23 19:33:060B / 78B / 59B
251b1921.14032008/06/01 02:02:310B / 100B / 81B

J _

RankUserSizeTimeDateStatistics
1pooq(date)360.98812008/05/24 16:30:310B / 22B / 13B

C _

RankUserSizeTimeDateStatistics
151b1060.02302008/05/22 18:16:110B / 53B / 53B
2eban1090.04252008/05/26 16:51:300B / 55B / 54B
351b(date)700.04512008/06/05 06:12:350B / 37B / 33B
4Debanjan700.00162010/08/14 15:00:410B / ?B / ?B

D _

RankUserSizeTimeDateStatistics
151b1270.05542008/05/22 19:49:430B / 74B / 50B
2kurimura1610.07072008/05/28 14:56:520B / 100B / 55B
351b1260.02732008/06/24 02:46:320B / 73B / 50B
4kurimura1270.05382008/06/09 01:38:480B / 71B / 53B

OCaml _

RankUserSizeTimeDateStatistics
1ksk1330.21902008/06/18 23:15:080B / 81B / 40B

Haskell _

RankUserSizeTimeDateStatistics
1notogawa1210.07682008/05/22 23:49:200B / ?B / ?B

Java _

RankUserSizeTimeDateStatistics
1Kobuzou(date)2190.73762008/06/03 17:50:050B / ?B / ?B
2teebee1420.66012010/11/19 08:40:290B / ?B / ?B
3uru3990.49922009/02/15 12:51:450B / 274B / 97B

Pascal _

RankUserSizeTimeDateStatistics
1uru1650.07042008/05/25 03:52:480B / 111B / 40B
2*yuko*1390.01832014/03/01 22:23:210B / 91B / 37B
3uru1430.09172009/01/26 07:50:170B / 95B / 36B

Fortran _

RankUserSizeTimeDateStatistics
1*yuko*880.03962011/11/21 07:19:410B / 51B / 36B

Nemerle _

RankUserSizeTimeDateStatistics
1matyr (date)1081.34782008/11/01 14:48:010B / 84B / 21B

COBOL _

RankUserSizeTimeDateStatistics
1*yuko*2970.01282011/07/20 22:27:260B / 209B / 49B

REBOL _

RankUserSizeTimeDateStatistics
1pooq(date)570.23532009/02/14 12:24:150B / 38B / 12B
2oofoe980.24752009/02/11 20:59:060B / 60B / 21B

AWK _

RankUserSizeTimeDateStatistics
1nn820.08152008/06/03 23:11:520B / 42B / 40B
2nn750.03262008/06/05 16:17:470B / 40B / 35B

m4 _

RankUserSizeTimeDateStatistics
151b2250.05902008/06/08 17:12:170B / 113B / 109B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(bin)901.15632008/05/23 19:41:4945B / 32B / 13B
2yshl1621.14652008/05/23 19:41:370B / 116B / 10B

R _

RankUserSizeTimeDateStatistics
1m-satyr(date)553.67152008/05/28 16:30:150B / 32B / 22B
2pooq(date)553.65632008/05/30 22:36:570B / 35B / 19B
351b(date)593.79092008/05/28 18:21:520B / 35B / 24B
4m-satyr633.71662008/05/27 20:47:390B / 38B / 24B
551b643.69542008/05/27 23:02:560B / 39B / 25B

Brainfuck _

RankUserSizeTimeDateStatistics
1nuko(cheat)2890.07562008/06/10 23:47:405B / 202B / 79B

GolfScript _

RankUserSizeTimeDateStatistics
1flagitious471.45462008/05/28 04:21:370B / 14B / 33B

z80 _

RankUserSizeTimeDateStatistics
1*yuko*970.29362011/03/05 23:34:0370B / 16B / 8B

goruby _

RankUserSizeTimeDateStatistics
1murky-satyr280.32682010/01/04 17:09:460B / 14B / 12B
2leonid290.23712010/01/03 20:33:160B / 15B / 13B

Groovy _

RankUserSizeTimeDateStatistics
1nn(embed)19311.90622008/05/29 07:17:5512B / 104B / 76B
2nn(date)667.12972009/11/05 13:34:060B / 45B / 18B

Language Ranking_

RankLangUserSizeScore
1gorubymurky-satyr2810000
2Jpooq(date)367777
3Rubykurimura416829
4JavaScriptm-satyr(date)466086
5GolfScriptflagitious475957
6Rm-satyr(date)555090
7REBOLpooq(date)574912
8Smalltalkm-satyr(date)594745
9Perlteebee594745
10PHPm-satyr(date)634444
11Groovynn(date)664242
12PythonDefenestrator694057
13CDebanjan704000
14AWKnn753733
15Schemem-satyr(date)753733
16Fortran*yuko*883181
17Postscriptyshl(bin)903111
18z80*yuko*972886
19BASIC*yuko*982857
20Nemerlematyr (date)1082592
21Tclmurky-satyr1142456
22Luamurky-satyr1172393
23Haskellnotogawa1212314
24D51b1262222
25OCamlksk1332105
26Pascal*yuko*1392014
27Erlang51b(date)1411985
28Iomurky-satyr1411985
29Javateebee1421971
30Forth51b1441944
31Common LISPkozima(date)1481891
32m451b2251244
33Brainfucknuko(cheat)289968
34COBOL*yuko*297942

return top