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 10, 2026 23:35Josu San MartinJosu San MartinScore: 5,371Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 10, 2026 23:355,35350,378,07822,081,0002,007,0002,359,296
2Apr 10, 2026 23:355,35850,554,69822,104,0002,009,0002,347,008
3Apr 10, 2026 23:355,36149,512,10723,120,0001,005,0002,347,008
4Apr 10, 2026 23:355,36252,293,72422,117,0002,010,0002,351,104
5Apr 10, 2026 23:355,37154,331,80022,156,0002,014,0002,355,200
6Apr 10, 2026 23:355,37359,228,50922,163,0002,014,0002,355,200
7Apr 10, 2026 23:355,37849,732,73622,186,0002,016,0002,306,048
8Apr 10, 2026 23:355,37949,937,93222,190,0002,017,0002,490,368
9Apr 10, 2026 23:355,39454,858,58522,251,0002,022,0002,498,560