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 listDec 22, 2025 21:13JulesPrieuxJulesPrieuxScore: 1,160,029Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 22, 2025 21:131,147,7945,191,450,9803,067,263,0002,097,812,0002,461,696
2Dec 22, 2025 21:131,150,1065,209,056,0223,022,773,0002,152,702,0002,314,240
3Dec 22, 2025 21:131,153,2705,219,260,7173,061,064,0002,128,653,0002,473,984
4Dec 22, 2025 21:131,154,5075,227,143,3843,093,787,0002,101,496,0002,379,776
5Dec 22, 2025 21:131,160,0295,251,547,9843,035,750,0002,184,381,0002,338,816
6Dec 22, 2025 21:131,164,6065,271,276,2873,087,483,0002,153,244,0002,478,080
7Dec 22, 2025 21:131,168,0425,294,632,1023,018,812,0002,237,379,0002,285,568
8Dec 22, 2025 21:131,177,6235,330,061,9103,102,836,0002,196,468,0002,478,080
9Dec 22, 2025 21:131,194,3425,407,996,6513,207,337,0002,167,201,0002,342,912