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 6, 2024 15:28E SequeiraE SequeiraScore: 54,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 6, 2024 15:2453,972437,335,531212,262,00030,614,00029,761,536
2Dec 6, 2024 15:2854,228435,478,531209,741,00034,284,00029,626,368
3Dec 6, 2024 15:2454,309428,807,620205,802,00038,587,00029,786,112
4Dec 6, 2024 15:2454,351436,904,911213,879,00030,700,00029,626,368
5Dec 6, 2024 15:2454,392428,558,185208,945,00035,819,00029,786,112
6Dec 6, 2024 15:2454,393437,305,498202,201,00042,568,00029,786,112
7Dec 6, 2024 15:2854,477432,273,191217,218,00027,928,00029,757,440
8Dec 6, 2024 15:2854,482430,509,498213,631,00031,536,00029,761,536
9Dec 6, 2024 15:2854,487430,696,663210,163,00035,027,00029,757,440
10Dec 6, 2024 15:2854,492438,154,441214,306,00030,909,00029,700,096
11Dec 6, 2024 15:2854,513436,642,694207,720,00037,587,00029,630,464
12Dec 6, 2024 15:2854,554447,813,060207,726,00037,768,00029,667,328
13Dec 6, 2024 15:2454,560441,586,352209,445,00036,076,00029,761,536
14Dec 6, 2024 15:2854,601439,159,127212,199,00033,505,00029,761,536
15Dec 6, 2024 15:2454,636434,112,570210,448,00035,412,00029,630,464
16Dec 6, 2024 15:2454,734433,135,218211,119,00035,186,00029,745,152
17Dec 6, 2024 15:2854,784429,614,561213,796,00032,734,00029,786,112
18Dec 6, 2024 15:2454,850429,534,798207,173,00039,650,00029,626,368