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 listMay 29, 2023 22:59Victor MuñozVictor MuñozScore: 13,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 29, 2023 22:596,52989,839,91229,380,45102,277,376
2May 29, 2023 22:596,534106,199,67929,403,27702,252,800
3May 29, 2023 22:596,53689,813,52129,411,34002,273,280
4May 29, 2023 22:5913,740246,244,92228,381,00033,449,00029,630,464
5May 29, 2023 22:5913,753249,910,24528,321,00033,566,00029,499,392
6May 29, 2023 22:5913,760247,565,90327,407,00034,513,00029,552,640
7May 29, 2023 22:5913,764246,170,30226,973,00034,965,00029,626,368
8May 29, 2023 22:5913,773249,621,24126,563,00035,417,00029,761,536
9May 29, 2023 22:5913,806249,407,98528,517,00033,610,00029,560,832
10May 29, 2023 22:5913,941252,188,28434,443,00028,292,00029,544,448
11May 29, 2023 22:5914,032256,060,33926,229,00036,915,00029,753,344
12May 29, 2023 22:5914,119253,937,81430,096,00033,440,00029,552,640