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 listOct 10, 2021 11:30Andrey TsvetkovAndrey TsvetkovScore: 132,237Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 11:3049,514280,759,209222,811,02002,293,760
2Oct 10, 2021 11:3049,638288,780,838223,373,02402,273,280
3Oct 10, 2021 11:3049,733285,465,228223,798,39702,252,800
4Oct 10, 2021 11:30122,884609,906,621552,976,85702,256,896
5Oct 10, 2021 11:30122,889619,281,254552,999,05302,273,280
6Oct 10, 2021 11:30123,029626,872,708553,630,07602,281,472
7Oct 10, 2021 11:30132,134781,327,330550,825,00043,780,00029,753,344
8Oct 10, 2021 11:30132,237776,346,525542,328,00052,740,00029,564,928
9Oct 10, 2021 11:30132,296782,031,508539,015,00056,315,00029,605,888
10Oct 10, 2021 11:30132,369775,542,617521,704,00073,958,00029,671,424
11Oct 10, 2021 11:30132,408781,651,873545,255,00050,580,00029,585,408
12Oct 10, 2021 11:30132,544780,185,983538,404,00058,043,00029,614,080
13Oct 10, 2021 11:30132,745779,138,817533,530,00063,824,00029,552,640
14Oct 10, 2021 11:30132,908785,804,997549,998,00048,087,00029,540,352
15Oct 10, 2021 11:30132,949783,068,974542,311,00055,960,00029,655,040