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 13, 2026 13:53Andrey KasheninAndrey KasheninScore: 78,822Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 13, 2026 13:5578,732362,984,828338,243,00016,054,0002,113,536
2May 13, 2026 13:5578,756365,697,583338,383,00016,020,0002,113,536
3May 13, 2026 13:5578,804363,366,262338,516,00016,106,0002,113,536
4May 13, 2026 13:5578,814363,371,101338,535,00016,129,0002,113,536
5May 13, 2026 13:5578,822363,442,937338,668,00016,032,0002,113,536
6May 13, 2026 13:5578,833366,622,368339,707,00015,045,0002,113,536
7May 13, 2026 13:5578,861363,646,737338,793,00016,083,0002,113,536
8May 13, 2026 13:5578,875365,520,886338,902,00016,038,0002,113,536
9May 13, 2026 13:5579,339367,875,550340,911,00016,118,0002,113,536