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 listJun 11, 2023 21:56Victor MuñozVictor MuñozScore: 11,462Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2023 21:566,235110,096,67328,057,01202,273,280
2Jun 11, 2023 21:566,23784,245,51128,068,64402,260,992
3Jun 11, 2023 21:566,29586,506,74928,326,68402,273,280
4Jun 11, 2023 21:5611,373236,431,89017,756,00033,424,00029,696,000
5Jun 11, 2023 21:5611,435245,409,88116,540,00034,918,00029,630,464
6Jun 11, 2023 21:5611,446237,246,82918,630,00032,877,00029,536,256
7Jun 11, 2023 21:5611,462241,504,98417,940,00033,637,00029,663,232
8Jun 11, 2023 21:5611,589238,323,58219,273,00032,878,00029,552,640
9Jun 11, 2023 21:5611,634243,004,84219,348,00033,006,00029,569,024
10Jun 11, 2023 21:5611,654240,443,80919,665,00032,776,00029,761,536
11Jun 11, 2023 21:5611,662236,898,98615,651,00036,828,00029,757,440
12Jun 11, 2023 21:5611,687238,744,37616,255,00036,336,00029,548,544