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 listApr 13, 2026 22:27Yuriy LyfenkoYuriy LyfenkoScore: 3,010Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 13, 2026 22:272,97733,061,61612,368,0001,030,0002,269,184
2Apr 13, 2026 22:262,98732,477,63112,408,0001,034,0002,387,968
3Apr 13, 2026 22:262,99539,948,63812,443,0001,036,0002,387,968
4Apr 13, 2026 22:272,99533,172,33213,477,00002,527,232
5Apr 13, 2026 22:272,99831,871,24012,455,0001,037,0002,396,160
6Apr 13, 2026 22:262,99934,766,33913,495,00002,269,184
7Apr 13, 2026 22:273,00229,561,13412,470,0001,039,0002,527,232
8Apr 13, 2026 22:273,01030,740,15213,545,00002,269,184
9Apr 13, 2026 22:273,01035,305,29613,546,00002,506,752
10Apr 13, 2026 22:273,01236,613,10912,511,0001,042,0002,527,232
11Apr 13, 2026 22:273,01731,331,85913,578,00002,527,232
12Apr 13, 2026 22:273,02029,762,45813,592,00002,502,656
13Apr 13, 2026 22:273,02830,619,14512,580,0001,048,0002,387,968
14Apr 13, 2026 22:273,03634,509,11612,613,0001,051,0002,383,872
15Apr 13, 2026 22:273,09740,256,19812,940,000995,0002,383,872