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 22, 2026 22:36Dominique GarmierDominique GarmierScore: 6,808Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 05:386,77153,437,22329,455,0001,015,0002,314,240
2Mar 22, 2026 15:216,79058,075,49629,535,0001,018,0002,473,984
3Mar 22, 2026 15:106,79352,345,21229,550,0001,018,0002,293,760
4Mar 23, 2026 05:386,79560,942,79829,560,0001,019,0002,461,696
5Mar 22, 2026 21:296,79961,101,49129,576,0001,019,0002,457,600
6Mar 22, 2026 15:106,80262,864,62229,588,0001,020,0002,457,600
7Mar 22, 2026 21:296,80350,222,67129,592,0001,020,0002,457,600
8Mar 22, 2026 22:116,80455,097,34629,599,0001,020,0002,457,600
9Mar 22, 2026 15:216,80657,794,90929,608,0001,020,0002,293,760
10Mar 22, 2026 22:366,80858,669,70929,617,0001,021,0002,293,760
11Mar 22, 2026 15:216,81157,442,86229,629,0001,021,0002,293,760
12Mar 23, 2026 05:386,81158,409,40630,649,00002,293,760
13Mar 22, 2026 22:116,82455,299,52429,683,0001,023,0002,457,600
14Mar 22, 2026 22:116,86059,965,09428,878,0001,991,0002,293,760
15Mar 22, 2026 15:106,86059,545,57829,875,000995,0002,465,792
16Mar 22, 2026 21:296,86157,728,09128,883,0001,991,0002,293,760
17Mar 22, 2026 22:366,86265,276,79328,889,0001,992,0002,293,760
18Mar 22, 2026 22:366,86361,145,65028,893,0001,992,0002,469,888