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 listJul 18, 2023 15:13gchebanovgchebanovScore: 19,749Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 15:1312,562114,700,00356,531,10502,269,184
2Jul 18, 2023 15:1312,567121,375,97156,549,52602,256,896
3Jul 18, 2023 15:1312,570123,714,17256,563,42802,252,800
4Jul 18, 2023 15:1319,635273,626,71054,842,00033,514,00029,556,736
5Jul 18, 2023 15:1319,714276,900,79054,437,00034,275,00029,663,232
6Jul 18, 2023 15:1319,729275,894,32856,126,00032,655,00029,724,672
7Jul 18, 2023 15:1319,749283,592,99052,163,00036,707,00029,499,392
8Jul 18, 2023 15:1319,779277,691,14459,336,00029,668,00029,630,464
9Jul 18, 2023 15:1319,781275,812,19459,342,00029,671,00029,663,232
10Jul 18, 2023 15:1319,789277,517,64158,308,00030,744,00029,491,200
11Jul 18, 2023 15:1319,798275,043,20359,395,00029,697,00029,593,600
12Jul 18, 2023 15:1319,824276,990,00456,014,00033,193,00029,696,000