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 17, 2025 23:06Chandrasekaran AkashChandrasekaran AkashScore: 177,827Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2025 23:06176,545821,938,320645,555,000148,897,0002,326,528
2Apr 17, 2025 23:06176,787820,753,081661,619,000133,923,0002,338,816
3Apr 17, 2025 23:06177,045827,996,144651,757,000144,946,0002,310,144
4Apr 17, 2025 23:06177,444830,437,794632,604,000165,896,0002,449,408
5Apr 17, 2025 23:06177,827827,916,739638,380,000161,842,0002,330,624
6Apr 17, 2025 23:06178,151834,217,684640,744,000160,935,0002,314,240
7Apr 17, 2025 23:06178,191822,521,531647,887,000153,973,0002,330,624
8Apr 17, 2025 23:06178,537833,190,668655,524,000147,892,0002,392,064
9Apr 17, 2025 23:06178,922836,294,784653,120,000152,027,0002,469,888