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 16, 2024 23:39Mikhail ShirokovMikhail ShirokovScore: 2,013,844Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 16, 2024 23:361,991,6868,998,808,3945,044,954,0003,917,635,0002,277,376
2Dec 16, 2024 23:362,004,5839,051,067,3015,235,300,0003,785,325,0002,273,280
3Dec 16, 2024 23:362,006,5169,055,313,0005,259,694,0003,769,630,0002,273,280
4Dec 16, 2024 23:362,007,0829,061,143,5385,141,510,0003,890,359,0002,273,280
5Dec 16, 2024 23:362,011,8169,086,646,2415,304,171,0003,749,000,0002,277,376
6Dec 16, 2024 23:362,012,5909,090,942,5085,248,901,0003,807,752,0002,277,376
7Dec 16, 2024 23:362,013,8449,095,193,7905,146,194,0003,916,103,0002,277,376
8Dec 16, 2024 23:392,035,6859,191,784,3925,277,304,0003,883,280,0002,277,376
9Dec 16, 2024 23:392,036,7709,193,044,0435,370,344,0003,795,123,0002,277,376
10Dec 16, 2024 23:362,039,0529,203,385,2055,292,961,0003,882,771,0002,277,376
11Dec 16, 2024 23:362,066,5139,327,883,6025,305,182,0003,994,125,0002,277,376
12Dec 16, 2024 23:392,217,85110,008,800,7885,677,636,0004,302,693,0002,277,376