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 listAug 16, 2026 23:10Tomislav TunkovicTomislav TunkovicScore: 7,900Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 17, 2026 03:497,88345,519,92434,272,0001,202,0002,138,112
2Aug 17, 2026 03:497,88343,924,25934,209,0001,267,0002,138,112
3Aug 17, 2026 03:497,88543,818,18534,265,0001,221,0002,138,112
4Aug 17, 2026 03:497,88843,943,58334,289,0001,209,0002,138,112
5Aug 17, 2026 03:497,90044,233,65534,269,0001,284,0002,138,112
6Aug 17, 2026 03:497,90643,966,05134,286,0001,295,0002,138,112
7Aug 17, 2026 03:497,90944,027,82334,570,0001,024,0002,138,112
8Aug 17, 2026 03:497,91144,004,01934,577,0001,023,0002,138,112
9Aug 17, 2026 03:497,91244,029,58134,586,0001,021,0002,138,112