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 19, 2023 10:05gchebanovgchebanovScore: 12,558Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 19, 2023 10:055,05981,008,06222,765,74802,260,992
2Jul 19, 2023 10:055,06281,712,36522,779,52702,260,992
3Jul 19, 2023 10:055,07885,386,75622,851,54302,265,088
4Jul 19, 2023 10:0512,394240,591,75622,965,00032,807,00029,626,368
5Jul 19, 2023 10:0512,424246,205,59823,960,00031,947,00029,622,272
6Jul 19, 2023 10:0512,548244,695,63821,174,00035,291,00029,630,464
7Jul 19, 2023 10:0512,558239,472,37723,734,00032,776,00029,536,256
8Jul 19, 2023 10:0512,609245,631,46721,278,00035,463,00029,544,448
9Jul 19, 2023 10:0512,627247,766,26421,308,00035,514,00029,720,576
10Jul 19, 2023 10:0512,663244,915,30926,673,00030,310,00029,659,136
11Jul 19, 2023 10:0512,679247,683,16224,961,00032,093,00029,749,248
12Jul 19, 2023 10:0512,790248,332,81418,885,00038,669,00029,589,504