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:59JulesPrieuxJulesPrieuxScore: 94,954Success
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:5994,193453,805,059401,876,00021,993,0002,494,464
2Dec 22, 2025 21:5994,335453,381,485405,529,00018,977,0002,285,568
3Dec 22, 2025 21:5994,736447,394,574409,302,00017,012,0002,289,664
4Dec 22, 2025 21:5994,895450,137,398418,026,0009,000,0002,289,664
5Dec 22, 2025 21:5994,954449,100,847414,283,00013,008,0002,498,560
6Dec 22, 2025 21:5995,048455,116,110415,725,00011,992,0002,289,664
7Dec 22, 2025 21:5995,060454,451,830413,777,00013,992,0002,355,200
8Dec 22, 2025 21:5996,551457,087,775414,458,00020,022,0002,351,104
9Dec 22, 2025 21:59120,396569,067,087521,791,00019,992,0002,498,560