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 listFeb 22, 2026 05:52olliecrowolliecrowScore: 7,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 05:437,91569,616,81721,370,00014,247,0002,293,760
2Feb 22, 2026 05:437,92264,420,75519,351,00016,296,0002,297,856
3Feb 22, 2026 05:437,93160,391,04721,414,00014,276,0002,285,568
4Feb 22, 2026 05:437,97264,184,02219,930,00015,944,0002,293,760
5Feb 22, 2026 05:437,97467,818,82422,924,00012,957,0002,306,048
6Feb 22, 2026 05:437,98759,473,70821,964,00013,977,0002,281,472
7Feb 22, 2026 05:437,98864,211,25622,967,00012,981,0002,289,664
8Feb 22, 2026 05:527,99260,568,08718,980,00016,982,0002,285,568
9Feb 22, 2026 05:528,00261,378,26118,005,00018,005,0002,293,760
10Feb 22, 2026 05:528,00460,036,66316,007,00020,009,0002,285,568
11Feb 22, 2026 05:438,02259,743,27917,046,00019,051,0002,293,760
12Feb 22, 2026 05:438,03858,855,37117,082,00019,091,0002,285,568