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 listMay 10, 2023 01:15Yuriy LyfenkoYuriy LyfenkoScore: 10,340Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 01:153,04069,036,38413,682,08502,252,800
2May 10, 2023 01:153,04376,512,50513,695,57402,244,608
3May 10, 2023 01:153,05161,924,22613,730,26302,252,800
4May 10, 2023 01:1510,290234,467,94813,999,00032,307,00029,708,288
5May 10, 2023 01:1510,316238,001,84713,120,00033,304,00029,708,288
6May 10, 2023 01:1510,327234,946,65914,384,00032,088,00029,671,424
7May 10, 2023 01:1510,340232,167,99013,149,00033,380,00029,540,352
8May 10, 2023 01:1510,372236,743,60214,799,00031,875,00029,503,488
9May 10, 2023 01:1510,428237,932,16015,998,00030,929,00029,663,232
10May 10, 2023 01:1510,430240,514,80913,981,00032,956,00029,675,520
11May 10, 2023 01:1510,433239,817,69315,650,00031,300,00029,659,136
12May 10, 2023 01:1510,586238,053,40813,176,00034,461,00029,544,448