Parse dateTime Andrey Tsvetkov

Compute the sum of 5,000,000 UTC Unix timestamps as fast as possible.

Input

One RFC 3339 datetime per line on STDIN:

2017-05-04T14:31:30-03:00
2046-06-23T11:51:56-06:00
2031-08-14T13:18:38+06:00
2048-04-14T05:55:06-09:00
1980-08-28T00:43:03+02:00

Output

Print the sum of all UTC Unix timestamps (int64) to STDOUT.

Constraints

  • Datetimes are in the range 1950-01-01T00:00:00 to 2050-12-31T23:59:59
Back to listDec 10, 2024 05:53Yuriy LyfenkoYuriy LyfenkoScore: 10,355Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 10, 2024 05:5110,002845,148,91112,859,00032,149,00029,470,720
2Dec 10, 2024 05:5110,034832,782,84612,041,00033,112,00029,745,152
3Dec 10, 2024 05:3910,047833,990,83815,071,00030,142,00029,745,152
4Dec 10, 2024 05:5210,102839,493,58111,364,00034,094,00029,458,432
5Dec 10, 2024 05:5210,104829,937,78411,861,00033,607,00029,491,200
6Dec 10, 2024 05:5210,109836,618,46711,595,00033,894,00029,741,056
7Dec 10, 2024 05:3910,118830,706,21012,331,00033,199,00029,483,008
8Dec 10, 2024 05:3910,119830,772,82012,143,00033,394,00029,704,192
9Dec 10, 2024 05:5310,137835,314,36013,685,00031,932,00029,753,344
10Dec 10, 2024 05:5210,193846,260,15814,270,00031,599,00029,663,232
11Dec 10, 2024 05:3910,217835,930,79514,578,00031,400,00029,671,424
12Dec 10, 2024 05:3910,220837,916,11612,264,00033,727,00029,634,560
13Dec 10, 2024 05:3910,236834,041,15713,926,00032,137,00029,745,152
14Dec 10, 2024 05:5210,319833,357,80215,886,00030,551,00029,573,120
15Dec 10, 2024 05:5210,319835,468,86013,931,00032,506,00029,667,328
16Dec 10, 2024 05:3910,355838,404,29913,461,00033,135,00029,671,424
17Dec 10, 2024 05:5310,357842,050,77012,365,00034,242,00029,704,192
18Dec 10, 2024 05:5310,370841,473,02514,203,00032,464,00029,470,720
19Dec 10, 2024 05:5110,395839,777,51214,479,00032,300,00029,761,536
20Dec 10, 2024 05:5310,402834,212,10114,489,00032,322,00029,712,384
21Dec 10, 2024 05:5210,403835,119,65313,831,00032,983,00029,732,864
22Dec 10, 2024 05:5310,413838,938,64213,844,00033,013,00029,663,232
23Dec 10, 2024 05:5310,416833,223,72113,080,00033,791,00029,700,096
24Dec 10, 2024 05:5210,428844,247,09614,078,00032,850,00029,495,296
25Dec 10, 2024 05:3910,434833,394,82013,873,00033,082,00029,474,816
26Dec 10, 2024 05:5310,435837,267,99710,836,00036,122,00029,732,864
27Dec 10, 2024 05:5210,527840,580,75615,020,00032,350,00029,577,216
28Dec 10, 2024 05:3910,528841,858,65413,866,00033,510,00029,470,720
29Dec 10, 2024 05:5310,635841,621,27710,835,00037,021,00029,487,104
30Dec 10, 2024 05:5310,652837,256,77515,579,00032,356,00029,519,872