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 listFeb 22, 2026 04:59olliecrowolliecrowScore: 8,248Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 22, 2026 04:538,20458,967,59723,946,00012,971,0002,285,568
2Feb 22, 2026 04:598,20458,149,41118,958,00017,960,0002,285,568
3Feb 22, 2026 04:538,22160,286,79421,996,00014,997,0002,301,952
4Feb 22, 2026 04:538,23460,706,61819,026,00018,025,0002,285,568
5Feb 22, 2026 04:538,23559,742,51525,038,00012,018,0002,285,568
6Feb 22, 2026 04:598,23760,958,69919,035,00018,033,0002,297,856
7Feb 22, 2026 04:598,24357,820,18922,055,00015,038,0002,408,448
8Feb 22, 2026 04:538,24460,019,77620,053,00017,045,0002,281,472
9Feb 22, 2026 04:598,24863,923,38923,071,00014,043,0002,285,568
10Feb 22, 2026 04:598,24861,043,85624,076,00013,041,0002,285,568
11Feb 22, 2026 04:538,25363,628,04419,072,00018,068,0002,301,952
12Feb 22, 2026 04:538,25562,294,23520,080,00017,068,0002,281,472
13Feb 22, 2026 04:538,26063,908,09420,091,00017,077,0002,297,856
14Feb 22, 2026 04:598,26060,598,75622,100,00015,068,0002,281,472
15Feb 22, 2026 04:598,29561,086,65827,238,00010,088,0002,285,568
16Feb 22, 2026 04:538,30056,997,09020,188,00017,160,0002,293,760
17Feb 22, 2026 04:598,33363,524,78725,337,00012,161,0002,281,472
18Feb 22, 2026 04:598,33861,125,52928,393,0009,126,0002,285,568