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 20, 2026 18:43BenBenScore: 21,532Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 18:4621,393119,670,36472,202,00024,067,0002,285,568
2Apr 20, 2026 18:4621,419120,674,84068,275,00028,113,0002,293,760
3Apr 20, 2026 18:4621,464118,974,23272,443,00024,147,0002,285,568
4Apr 20, 2026 18:4621,498124,506,42371,811,00024,934,0002,420,736
5Apr 20, 2026 18:4621,532120,287,58590,903,0005,993,0002,293,760
6Apr 20, 2026 18:4621,571120,024,29187,066,00010,007,0002,301,952
7Apr 20, 2026 18:4621,584124,515,31785,116,00012,016,0002,289,664
8Apr 20, 2026 18:4621,683122,596,43280,475,00017,101,0002,297,856
9Apr 20, 2026 18:4621,802119,502,85178,090,00020,023,0002,289,664