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:07Yuriy LyfenkoYuriy LyfenkoScore: 10,321Success
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:073,02152,704,22513,593,48502,252,800
2May 10, 2023 01:073,08380,279,81713,875,38902,236,416
3May 10, 2023 01:073,09180,116,56813,910,28402,244,608
4May 10, 2023 01:0710,194235,481,77115,664,00030,210,00029,675,520
5May 10, 2023 01:0710,255232,999,52012,921,00033,225,00029,708,288
6May 10, 2023 01:0710,316240,534,56911,605,00034,815,00029,675,520
7May 10, 2023 01:0710,321242,067,09315,094,00031,350,00029,679,616
8May 10, 2023 01:0710,346239,093,79017,615,00028,940,00029,675,520
9May 10, 2023 01:0710,425238,804,29813,257,00033,654,00029,659,136
10May 10, 2023 01:0710,462243,128,77014,328,00032,750,00029,655,040
11May 10, 2023 01:0710,492238,182,18414,688,00032,524,00029,659,136
12May 10, 2023 01:0710,510243,048,03214,996,00032,299,00029,708,288