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 18, 2026 21:52Dominique GarmierDominique GarmierScore: 8,512Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 20, 2026 07:528,47266,320,07136,116,0002,006,0002,289,664
2Mar 20, 2026 03:088,48567,759,82337,180,0001,004,0002,461,696
3Mar 19, 2026 05:038,48967,964,72837,195,0001,005,0002,289,664
4Mar 20, 2026 08:048,49869,220,95736,231,0002,012,0002,289,664
5Mar 20, 2026 03:088,50171,826,44537,248,0001,006,0002,289,664
6Mar 20, 2026 07:528,50664,069,69336,264,0002,014,0002,461,696
7Mar 20, 2026 08:048,51164,827,65136,284,0002,015,0002,457,600
8Mar 18, 2026 21:528,51264,479,05138,306,00002,461,696
9Mar 20, 2026 08:048,53165,981,11737,379,0001,010,0002,289,664
10Mar 19, 2026 05:038,53466,920,59936,382,0002,021,0002,306,048
11Mar 19, 2026 05:038,54166,010,32736,412,0002,022,0002,289,664
12Mar 18, 2026 21:528,54466,525,07938,450,00002,289,664
13Mar 20, 2026 03:088,54961,229,72636,447,0002,024,0002,289,664
14Mar 18, 2026 21:528,55062,421,22737,465,0001,012,0002,469,888
15Mar 20, 2026 07:528,55858,710,83137,499,0001,013,0002,465,792