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 listOct 15, 2021 19:25Yuriy LyfenkoYuriy LyfenkoScore: 13,316Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:255,99296,469,66626,965,75802,244,608
2Oct 15, 2021 19:255,99378,085,30826,966,63802,260,992
3Oct 15, 2021 19:255,99386,140,69926,966,31502,252,800
4Oct 15, 2021 19:2513,182248,460,02025,135,00034,184,00029,671,424
5Oct 15, 2021 19:2513,208246,631,34926,643,00032,791,00029,511,680
6Oct 15, 2021 19:2513,314250,911,52625,824,00034,087,00029,544,448
7Oct 15, 2021 19:2513,316253,124,03635,171,00024,750,00029,573,120
8Oct 15, 2021 19:2513,346250,130,07227,958,00032,100,00029,655,040
9Oct 15, 2021 19:2513,362252,955,61928,990,00031,138,00029,609,984
10Oct 15, 2021 19:2513,380252,729,74831,949,00028,262,00029,663,232
11Oct 15, 2021 19:2513,520252,392,80829,847,00030,995,00029,708,288
12Oct 15, 2021 19:2513,530254,016,50523,824,00037,059,00029,761,536