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 9, 2024 22:00Joad NacerJoad NacerScore: 13,449Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 9, 2024 22:005,61291,981,70225,252,51302,277,376
2May 9, 2024 22:005,61999,650,56025,284,59202,273,280
3May 9, 2024 22:005,73384,747,83325,800,04302,281,472
4May 9, 2024 22:0013,277245,034,05424,895,00034,853,00029,552,640
5May 9, 2024 22:0013,304248,339,45025,517,00034,349,00029,663,232
6May 9, 2024 22:0013,423251,358,40827,964,00032,438,00029,544,448
7May 9, 2024 22:0013,449249,322,09027,605,00032,914,00029,757,440
8May 9, 2024 22:0013,497254,446,47027,608,00033,129,00029,495,296
9May 9, 2024 22:0013,594249,884,73328,322,00032,853,00029,667,328
10May 9, 2024 22:0013,600269,378,28828,414,00032,786,00029,597,696
11May 9, 2024 22:0013,616253,835,66328,902,00032,371,00029,503,488
12May 9, 2024 22:0013,692251,695,70630,204,00031,412,00029,630,464