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 listDec 7, 2024 15:25E SequeiraE SequeiraScore: 22,714Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 19:3222,420279,221,26567,947,00032,944,00029,634,560
2Dec 7, 2024 15:2522,465290,402,28469,114,00031,978,00029,749,248
3Dec 6, 2024 19:3222,480289,392,83563,342,00037,816,00029,528,064
4Dec 6, 2024 19:3222,525290,108,32966,236,00035,125,00029,659,136
5Dec 6, 2024 19:3222,692294,578,60969,109,00033,007,00029,757,440
6Dec 6, 2024 19:3222,713288,502,66572,850,00029,357,00029,663,232
7Dec 7, 2024 15:2522,714293,448,22465,849,00036,364,00029,757,440
8Dec 6, 2024 19:3222,716293,021,36469,554,00032,669,00029,634,560
9Dec 7, 2024 15:2522,734296,771,18064,058,00038,244,00029,663,232
10Dec 6, 2024 19:3222,833292,791,24465,838,00036,909,00029,499,392
11Dec 6, 2024 19:3222,845296,587,26165,239,00037,562,00029,626,368
12Dec 6, 2024 19:3222,898296,934,47571,173,00031,868,00029,691,904