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 17, 2021 16:41Yurkov AlekseyYurkov AlekseyScore: 16,155Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 17, 2021 16:418,96998,172,01940,359,61002,265,088
2Oct 17, 2021 16:418,995115,623,57040,478,41002,265,088
3Oct 17, 2021 16:419,038103,074,55640,671,15002,265,088
4Oct 17, 2021 16:4116,011260,668,18136,025,00036,025,00029,696,000
5Oct 17, 2021 16:4116,070258,714,47039,257,00033,058,00029,696,000
6Oct 17, 2021 16:4116,074260,963,61638,786,00033,545,00029,548,544
7Oct 17, 2021 16:4116,155262,816,55237,842,00034,855,00029,663,232
8Oct 17, 2021 16:4116,168262,053,03140,658,00032,098,00029,642,752
9Oct 17, 2021 16:4116,177258,469,46139,517,00033,278,00029,552,640
10Oct 17, 2021 16:4116,212256,955,02640,178,00032,776,00029,528,064
11Oct 17, 2021 16:4116,280258,718,49038,178,00035,082,00029,663,232
12Oct 17, 2021 16:4116,384261,599,83138,912,00034,816,00029,667,328