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 10, 2021 22:36Yuriy LyfenkoYuriy LyfenkoScore: 20,545Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:3612,947127,299,05458,262,65102,244,608
2Oct 10, 2021 22:3612,970123,057,17058,367,05102,252,800
3Oct 10, 2021 22:3612,992125,729,30458,463,00202,256,896
4Oct 10, 2021 22:3620,462283,893,79057,795,00034,285,00029,667,328
5Oct 10, 2021 22:3620,466278,956,58862,455,00029,640,00029,753,344
6Oct 10, 2021 22:3620,527281,696,08262,643,00029,728,00029,667,328
7Oct 10, 2021 22:3620,545284,568,03358,927,00033,527,00029,663,232
8Oct 10, 2021 22:3620,565279,320,86365,001,00027,543,00029,663,232
9Oct 10, 2021 22:3620,594286,543,67856,579,00036,094,00029,671,424
10Oct 10, 2021 22:3620,630285,797,03464,102,00028,735,00029,671,424
11Oct 10, 2021 22:3620,685291,670,59761,020,00032,061,00029,614,080
12Oct 10, 2021 22:3620,904292,278,34562,713,00031,356,00029,573,120