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 listNov 9, 2021 13:14Ilya AniskovetsIlya AniskovetsScore: 14,690Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 9, 2021 13:147,17293,956,10232,275,02002,256,896
2Nov 9, 2021 13:147,226102,178,92732,518,52202,269,184
3Nov 9, 2021 13:147,254107,203,12732,641,90202,260,992
4Nov 9, 2021 13:1414,540245,519,16932,716,00032,716,00029,577,216
5Nov 9, 2021 13:1414,596239,572,32732,320,00033,363,00026,910,720
6Nov 9, 2021 13:1414,684255,961,62931,513,00034,563,00029,528,064
7Nov 9, 2021 13:1414,690248,979,14131,527,00034,578,00029,614,080
8Nov 9, 2021 13:1414,740257,597,79030,239,00036,092,00029,483,008
9Nov 9, 2021 13:1414,772255,436,09636,053,00030,420,00029,745,152
10Nov 9, 2021 13:1414,834257,921,78235,529,00031,222,00029,618,176
11Nov 9, 2021 13:1414,835254,437,86532,335,00034,421,00029,650,944
12Nov 9, 2021 13:1414,905259,564,08431,988,00035,084,00029,581,312