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:49gchebanovgchebanovScore: 15,343Success
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:498,03198,268,87836,138,39102,265,088
2Jul 18, 2023 21:498,044105,206,12236,200,14902,269,184
3Jul 18, 2023 21:498,04889,699,14036,215,03402,260,992
4Jul 18, 2023 21:4915,186251,559,10136,238,00032,097,00029,663,232
5Jul 18, 2023 21:4915,260259,038,45134,335,00034,335,00029,487,104
6Jul 18, 2023 21:4915,291256,833,24234,919,00033,892,00029,544,448
7Jul 18, 2023 21:4915,343260,087,96934,521,00034,521,00029,589,504
8Jul 18, 2023 21:4915,394259,029,60339,747,00029,526,00029,663,232
9Jul 18, 2023 21:4915,473258,487,22536,374,00033,256,00029,691,904
10Jul 18, 2023 21:4915,551265,477,41939,006,00030,975,00029,618,176
11Jul 18, 2023 21:4915,614258,937,16841,188,00029,074,00029,691,904
12Jul 18, 2023 21:4915,637257,973,27839,875,00030,492,00029,655,040