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 8, 2023 06:13Yuriy LyfenkoYuriy LyfenkoScore: 12,720Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 06:135,68189,238,95725,564,11202,256,896
2May 8, 2023 06:135,700107,733,84425,648,35802,244,608
3May 8, 2023 06:135,70987,250,67725,688,85602,244,608
4May 8, 2023 06:1312,650241,509,83423,969,00032,958,00029,544,448
5May 8, 2023 06:1312,666249,806,42921,712,00035,283,00029,745,152
6May 8, 2023 06:1312,700246,897,18825,774,00031,377,00029,732,864
7May 8, 2023 06:1312,720250,964,54823,285,00033,957,00029,642,752
8May 8, 2023 06:1312,783244,408,07323,626,00033,898,00029,704,192
9May 8, 2023 06:1312,805249,605,36929,399,00028,223,00029,605,888
10May 8, 2023 06:1312,828248,696,14325,050,00032,674,00029,679,616
11May 8, 2023 06:1312,870244,271,23727,253,00030,660,00029,663,232
12May 8, 2023 06:1312,882254,046,93627,825,00030,144,00029,655,040