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 listMar 30, 2026 11:57Dominique GarmierDominique GarmierScore: 13,078Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 30, 2026 11:5712,90879,880,37356,084,0002,003,0002,355,200
2Mar 30, 2026 11:2812,90978,612,30457,090,0001,001,0002,347,008
3Mar 30, 2026 11:2812,91980,610,01357,135,0001,002,0002,351,104
4Mar 30, 2026 12:3812,98986,118,76257,444,0001,007,0002,289,664
5Mar 30, 2026 08:5813,01280,502,10058,552,00002,289,664
6Mar 30, 2026 08:5813,02281,929,48057,590,0001,010,0002,359,296
7Mar 30, 2026 12:3813,07885,100,40257,855,000997,0002,428,928
8Mar 30, 2026 12:3813,08086,258,54756,865,0001,995,0002,342,912
9Mar 30, 2026 11:5713,08192,111,51157,867,000997,0002,359,296
10Mar 30, 2026 11:5713,08284,419,40556,874,0001,995,0002,363,392
11Mar 30, 2026 11:2813,08383,077,02558,872,00002,285,568
12Mar 30, 2026 08:5813,15387,275,18157,182,0002,006,0002,289,664