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 22:24Yuriy LyfenkoYuriy LyfenkoError
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 22:2300000Error: No answer to stdout. Died or killed?stderr
2May 8, 2023 22:248,101101,378,75936,453,18402,244,608
3May 8, 2023 22:248,101104,542,93036,454,56802,240,512
4May 8, 2023 22:248,104114,047,27036,466,48502,236,416
5May 8, 2023 22:2414,771258,446,71834,769,00031,702,00029,544,448
6May 8, 2023 22:2414,866252,951,01333,964,00032,935,00029,663,232
7May 8, 2023 22:2414,870260,775,94632,959,00033,958,00029,663,232
8May 8, 2023 22:2414,950259,595,76834,140,00033,135,00029,671,424
9May 8, 2023 22:2414,991259,306,11340,239,00027,220,00029,655,040
10May 8, 2023 22:2415,031259,176,93134,339,00033,299,00029,544,448
11May 8, 2023 22:2415,031255,166,35433,330,00034,310,00029,712,384
12May 8, 2023 22:2415,134256,474,03635,622,00032,479,00029,667,328
13May 8, 2023 22:2415,150259,975,81235,710,00032,464,00029,544,448