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 21:20gchebanovgchebanovScore: 15,333Success
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 21:204,61091,013,94020,745,26702,269,184
2Jul 18, 2023 21:204,61185,022,51220,751,33902,256,896
3Jul 18, 2023 21:204,627121,716,92820,823,53302,269,184
4Jul 18, 2023 21:2015,264250,746,03435,881,00032,805,00029,630,464
5Jul 18, 2023 21:2015,267263,485,25833,397,00035,306,00029,593,600
6Jul 18, 2023 21:2015,332252,349,64240,445,00028,549,00029,622,272
7Jul 18, 2023 21:2015,333254,669,48733,041,00035,956,00029,634,560
8Jul 18, 2023 21:2015,352258,282,14834,041,00035,042,00029,757,440
9Jul 18, 2023 21:2015,395256,048,20734,151,00035,127,00029,753,344
10Jul 18, 2023 21:2015,425261,306,09037,959,00031,452,00029,679,616
11Jul 18, 2023 21:2015,430260,858,40936,320,00033,115,00029,540,352
12Jul 18, 2023 21:2015,592261,593,45040,257,00029,905,00029,659,136