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 listMay 7, 2023 09:29Bernard TeoBernard TeoScore: 16,733Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 7, 2023 09:297,465104,002,96433,590,74702,260,992
2May 7, 2023 09:297,467118,020,26033,603,42102,265,088
3May 7, 2023 09:297,47987,749,85533,657,57002,260,992
4May 7, 2023 09:2915,883256,624,14440,992,00030,481,00029,720,576
5May 7, 2023 09:2915,973262,229,98632,945,00038,935,00029,655,040
6May 7, 2023 09:2915,992259,717,98433,296,00038,666,00029,556,736
7May 7, 2023 09:2916,733276,127,00642,476,00032,822,00029,556,736
8May 7, 2023 09:2916,830271,345,01934,890,00040,847,00029,720,576
9May 7, 2023 09:2916,831280,137,09740,463,00035,275,00029,720,576
10May 7, 2023 09:2916,953279,564,88738,144,00038,144,00029,556,736
11May 7, 2023 09:2916,995280,850,46041,010,00035,468,00029,687,808
12May 7, 2023 09:2917,012276,427,72943,420,00033,136,00029,720,576