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 03:05olliecrowolliecrowScore: 10,703Success
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 03:0510,63472,710,13530,904,00016,947,0002,297,856
2Feb 22, 2026 02:5510,63575,986,70833,898,00013,958,0002,281,472
3Feb 22, 2026 02:5510,63776,238,64230,913,00016,952,0002,375,680
4Feb 22, 2026 02:5510,63777,496,62929,916,00017,949,0002,281,472
5Feb 22, 2026 02:5510,64970,463,65335,942,00011,980,0002,281,472
6Feb 22, 2026 02:5510,68771,122,07932,061,00016,030,0002,281,472
7Feb 22, 2026 02:5510,70376,277,34540,135,0008,027,0002,281,472
8Feb 22, 2026 02:5510,70576,927,84932,116,00016,058,0002,281,472
9Feb 22, 2026 03:0510,72371,832,04132,168,00016,084,0002,281,472
10Feb 22, 2026 02:5510,77775,852,24633,341,00015,155,0002,285,568
11Feb 22, 2026 02:5510,79471,445,52940,476,0008,095,0002,273,280
12Feb 22, 2026 03:0511,04074,192,78630,415,00019,263,0002,277,376