Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B"Calendars in widespread use today include the Gregorian calendar, which is the de facto international standard, and is used almost everywhere in the world for civil purposes. The Gregorian reform modified the Julian calendar's scheme of leap years as follows: Every year that is exactly divisible by four is a leap year, except for years that are exactly divisible by 100; the centurial years that are exactly divisible by 400 are still leap years. For example, the year 1900 is not a leap year; the year 2000 is a leap year. In this problem, you have been given two dates and your task is to calculate how many days are between them. Note, that leap years have unusual number of days in February. Look at the sample to understand what borders are included in the aswer. The first two lines contain two dates, each date is in the format yyyy:mm:dd (1900 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89yyyy xe2 x80 x89 xe2 x89 xa4 xe2 x80 x892038 and yyyy:mm:dd is a legal date). Print a single integer -- the answer to the problem."... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
3709027 |
Casio |
B |
May 12, 2013, 1:57 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
0 |
|
1400 |
3707741 |
SlavaSSU |
B |
May 12, 2013, 1:29 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
0 |
|
1400 |
3709624 |
Timmeh |
B |
May 12, 2013, 2:11 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3709301 |
DeSerg |
B |
May 12, 2013, 2:03 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3708016 |
pufff |
B |
May 12, 2013, 1:35 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3707995 |
Frommi |
B |
May 12, 2013, 1:35 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3707821 |
egor-belikov |
B |
May 12, 2013, 1:31 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3707177 |
tsoy |
B |
May 12, 2013, 1:19 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3707782 |
bulkasmakom |
B |
May 12, 2013, 1:30 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3707679 |
Al2K |
B |
May 12, 2013, 1:28 p.m. |
OK |
Delphi |
TESTS |
40 |
15 |
102400 |
|
1400 |
3710148 |
lhyzjz |
B |
May 12, 2013, 2:22 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3709716 |
chipchip3412 |
B |
May 12, 2013, 2:13 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3708467 |
LazyMist |
B |
May 12, 2013, 1:45 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3708453 |
wtr |
B |
May 12, 2013, 1:45 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3708095 |
Omelianenko |
B |
May 12, 2013, 1:37 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3707681 |
magicfisk |
B |
May 12, 2013, 1:28 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3707488 |
SanSiroWaltz |
B |
May 12, 2013, 1:25 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
0 |
|
1400 |
3710551 |
KnightSaber77 |
B |
May 12, 2013, 2:31 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
102400 |
|
1400 |
3709432 |
zscc |
B |
May 12, 2013, 2:06 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
102400 |
|
1400 |
3708902 |
mr.deidara |
B |
May 12, 2013, 1:55 p.m. |
OK |
FPC |
TESTS |
40 |
15 |
102400 |
|
1400 |
3711143 |
whatbeg |
B |
May 12, 2013, 2:44 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3710518 |
rootial |
B |
May 12, 2013, 2:30 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3709997 |
picaso |
B |
May 12, 2013, 2:19 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3709616 |
coder46 |
B |
May 12, 2013, 2:10 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3709167 |
hellgeek |
B |
May 12, 2013, 2 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3707547 |
Never_more |
B |
May 12, 2013, 1:26 p.m. |
OK |
GNU C |
TESTS |
40 |
15 |
0 |
|
1400 |
3709074 |
ksaurav |
B |
May 12, 2013, 1:59 p.m. |
OK |
GNU C |
TESTS |
40 |
31 |
0 |
|
1400 |
3707721 |
s864372002 |
B |
May 12, 2013, 1:29 p.m. |
OK |
GNU C |
TESTS |
40 |
31 |
0 |
|
1400 |
3711628 |
vanessalubenova |
B |
May 12, 2013, 2:52 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3712090 |
haruki_K |
B |
May 12, 2013, 2:59 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3712084 |
adamos2468 |
B |
May 12, 2013, 2:59 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3712022 |
avagnite |
B |
May 12, 2013, 2:58 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711953 |
zacker |
B |
May 12, 2013, 2:57 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711798 |
subrata_sust |
B |
May 12, 2013, 2:55 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711784 |
uncleFun |
B |
May 12, 2013, 2:55 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711727 |
Malthael |
B |
May 12, 2013, 2:54 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711582 |
doubletony |
B |
May 12, 2013, 2:51 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711520 |
Zzyzx |
B |
May 12, 2013, 2:50 p.m. |
OK |
GNU C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710650 |
lmaia |
B |
May 12, 2013, 2:33 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3710142 |
WildUtah |
B |
May 12, 2013, 2:22 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3709554 |
Ayrlin |
B |
May 12, 2013, 2:09 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708937 |
ehsanoo |
B |
May 12, 2013, 1:55 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708674 |
d_t_nguyen |
B |
May 12, 2013, 1:50 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708591 |
uint16_t |
B |
May 12, 2013, 1:48 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708570 |
tatsy |
B |
May 12, 2013, 1:47 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708488 |
sasha.sochka |
B |
May 12, 2013, 1:46 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3708147 |
E_Fantacy |
B |
May 12, 2013, 1:38 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3707877 |
Spark_code |
B |
May 12, 2013, 1:32 p.m. |
OK |
GNU C++0x |
TESTS |
40 |
15 |
0 |
|
1400 |
3711900 |
dastapov |
B |
May 12, 2013, 2:57 p.m. |
OK |
Haskell |
TESTS |
40 |
15 |
0 |
|
1400 |
3708580 |
hiukim |
B |
May 12, 2013, 1:48 p.m. |
OK |
Java 6 |
TESTS |
40 |
78 |
2252800 |
|
1400 |
3709466 |
klone |
B |
May 12, 2013, 2:07 p.m. |
OK |
Java 6 |
TESTS |
40 |
93 |
0 |
|
1400 |
3709409 |
Desert |
B |
May 12, 2013, 2:06 p.m. |
OK |
Java 6 |
TESTS |
40 |
93 |
0 |
|
1400 |
3707175 |
bohuss |
B |
May 12, 2013, 1:19 p.m. |
OK |
Java 6 |
TESTS |
40 |
93 |
0 |
|
1400 |
3708485 |
sessoh |
B |
May 12, 2013, 1:45 p.m. |
OK |
Java 6 |
TESTS |
40 |
93 |
2252800 |
|
1400 |
3706899 |
Darko |
B |
May 12, 2013, 1:15 p.m. |
OK |
Java 6 |
TESTS |
40 |
109 |
102400 |
|
1400 |
3707204 |
lazzrov |
B |
May 12, 2013, 1:19 p.m. |
OK |
Java 6 |
TESTS |
40 |
140 |
614400 |
|
1400 |
3707048 |
twds |
B |
May 12, 2013, 1:17 p.m. |
OK |
Java 6 |
TESTS |
40 |
187 |
102400 |
|
1400 |
3709304 |
yalonikopp |
B |
May 12, 2013, 2:03 p.m. |
OK |
Java 6 |
TESTS |
40 |
234 |
716800 |
|
1400 |
3708258 |
ilya.krokus |
B |
May 12, 2013, 1:40 p.m. |
OK |
Java 7 |
TESTS |
40 |
78 |
0 |
|
1400 |
3709876 |
NiceDay |
B |
May 12, 2013, 2:16 p.m. |
OK |
Java 7 |
TESTS |
40 |
78 |
0 |
|
1400 |
3707785 |
vineet.paliwal |
B |
May 12, 2013, 1:30 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3709633 |
Mostafa.Gabriel |
B |
May 12, 2013, 2:11 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3708452 |
Shrug |
B |
May 12, 2013, 1:45 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3707999 |
ghewanzin |
B |
May 12, 2013, 1:35 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3707281 |
xenoslash |
B |
May 12, 2013, 1:21 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3711290 |
rantd |
B |
May 12, 2013, 2:46 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3710116 |
Mostafa_Hamdy |
B |
May 12, 2013, 2:22 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3709860 |
martinezgjuan |
B |
May 12, 2013, 2:16 p.m. |
OK |
Java 7 |
TESTS |
40 |
93 |
0 |
|
1400 |
3710532 |
IdleMan |
B |
May 12, 2013, 2:31 p.m. |
OK |
Mono C# |
TESTS |
40 |
46 |
204800 |
|
1400 |
3708063 |
dwoolley3 |
B |
May 12, 2013, 1:36 p.m. |
OK |
Mono C# |
TESTS |
40 |
46 |
307200 |
|
1400 |
3706542 |
Kety93 |
B |
May 12, 2013, 1:10 p.m. |
OK |
Mono C# |
TESTS |
40 |
46 |
3686400 |
|
1400 |
3709410 |
-emli- |
B |
May 12, 2013, 2:06 p.m. |
OK |
Mono C# |
TESTS |
40 |
62 |
307200 |
|
1400 |
3706580 |
Nayils |
B |
May 12, 2013, 1:10 p.m. |
OK |
Mono C# |
TESTS |
40 |
62 |
3584000 |
|
1400 |
3708622 |
QuantumKnight |
B |
May 12, 2013, 1:49 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
204800 |
|
1400 |
3708370 |
felix |
B |
May 12, 2013, 1:43 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
204800 |
|
1400 |
3707602 |
k1nval |
B |
May 12, 2013, 1:27 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
204800 |
|
1400 |
3707020 |
demolishka |
B |
May 12, 2013, 1:17 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
307200 |
|
1400 |
3708325 |
Toxic |
B |
May 12, 2013, 1:42 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
307200 |
|
1400 |
3707466 |
wzhgba |
B |
May 12, 2013, 1:24 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
409600 |
|
1400 |
3707694 |
Morgan_HackProg |
B |
May 12, 2013, 1:29 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
3481600 |
|
1400 |
3707339 |
_Gav_ |
B |
May 12, 2013, 1:22 p.m. |
OK |
MS C# |
TESTS |
40 |
46 |
3481600 |
|
1400 |
3707781 |
ManojMahadik |
B |
May 12, 2013, 1:30 p.m. |
OK |
MS C# |
TESTS |
40 |
62 |
204800 |
|
1400 |
3708383 |
harman786 |
B |
May 12, 2013, 1:43 p.m. |
OK |
MS C# |
TESTS |
40 |
78 |
204800 |
|
1400 |
3709721 |
xuyecan |
B |
May 12, 2013, 2:13 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711511 |
Oier13507 |
B |
May 12, 2013, 2:50 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710861 |
ArsDemidov |
B |
May 12, 2013, 2:38 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710808 |
Pancake |
B |
May 12, 2013, 2:37 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710786 |
IVM |
B |
May 12, 2013, 2:36 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710735 |
ArtemPskov |
B |
May 12, 2013, 2:35 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710595 |
mbaros |
B |
May 12, 2013, 2:32 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3710394 |
kozymir |
B |
May 12, 2013, 2:28 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3709408 |
Poring |
B |
May 12, 2013, 2:06 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3709388 |
Life_is_good |
B |
May 12, 2013, 2:05 p.m. |
OK |
MS C++ |
TESTS |
40 |
15 |
0 |
|
1400 |
3711651 |
Hangibhom |
B |
May 12, 2013, 2:52 p.m. |
OK |
Python 2 |
TESTS |
40 |
46 |
0 |
|
1400 |
3710152 |
drj_reddy |
B |
May 12, 2013, 2:22 p.m. |
OK |
Python 2 |
TESTS |
40 |
46 |
0 |
|
1400 |
3708850 |
Gotzillaz |
B |
May 12, 2013, 1:53 p.m. |
OK |
Python 2 |
TESTS |
40 |
46 |
0 |
|
1400 |
3707022 |
Wahba |
B |
May 12, 2013, 1:17 p.m. |
OK |
Python 2 |
TESTS |
40 |
46 |
0 |
|
1400 |
3709548 |
progmiya |
B |
May 12, 2013, 2:09 p.m. |
OK |
Python 2 |
TESTS |
40 |
46 |
307200 |
|
1400 |
3711469 |
rjjfdn |
B |
May 12, 2013, 2:49 p.m. |
OK |
Python 2 |
TESTS |
40 |
62 |
0 |
|
1400 |
3710959 |
Reggies |
B |
May 12, 2013, 2:40 p.m. |
OK |
Python 2 |
TESTS |
40 |
62 |
0 |
|
1400 |
3710488 |
gowthamganguri |
B |
May 12, 2013, 2:30 p.m. |
OK |
Python 2 |
TESTS |
40 |
62 |
0 |
|
1400 |
3710138 |
atupal |
B |
May 12, 2013, 2:22 p.m. |
OK |
Python 2 |
TESTS |
40 |
62 |
0 |
|
1400 |
3709165 |
Ioana |
B |
May 12, 2013, 2 p.m. |
OK |
Python 2 |
TESTS |
40 |
62 |
0 |
|
1400 |
3707680 |
Tehnar |
B |
May 12, 2013, 1:28 p.m. |
OK |
Python 3 |
TESTS |
40 |
93 |
2252800 |
|
1400 |
3710477 |
agw |
B |
May 12, 2013, 2:30 p.m. |
OK |
Python 3 |
TESTS |
40 |
109 |
2252800 |
|
1400 |
3707274 |
neverous |
B |
May 12, 2013, 1:21 p.m. |
OK |
Python 3 |
TESTS |
40 |
109 |
2252800 |
|
1400 |
3706363 |
danilko |
B |
May 12, 2013, 1:08 p.m. |
OK |
Python 3 |
TESTS |
40 |
125 |
2252800 |
|
1400 |
3706797 |
alex_mat |
B |
May 12, 2013, 1:13 p.m. |
OK |
Python 3 |
TESTS |
40 |
140 |
2252800 |
|
1400 |
3707674 |
simanman |
B |
May 12, 2013, 1:28 p.m. |
OK |
Ruby |
TESTS |
40 |
46 |
102400 |
|
1400 |
3708579 |
muraken |
B |
May 12, 2013, 1:47 p.m. |
OK |
Ruby |
TESTS |
40 |
46 |
204800 |
|
1400 |
3707975 |
App |
B |
May 12, 2013, 1:35 p.m. |
OK |
Ruby |
TESTS |
40 |
46 |
204800 |
|
1400 |
3706669 |
torus711 |
B |
May 12, 2013, 1:11 p.m. |
OK |
Ruby |
TESTS |
40 |
46 |
204800 |
|
1400 |
3707450 |
SyFy |
B |
May 12, 2013, 1:24 p.m. |
OK |
Ruby |
TESTS |
40 |
78 |
819200 |
|
1400 |
remove filters
Back to search problems