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 6, 2023 18:10Bernard TeoBernard TeoScore: 22,884Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 6, 2023 18:1013,448133,925,08160,517,03502,269,184
2May 6, 2023 18:1013,626119,581,75561,316,89502,273,280
3May 6, 2023 18:1013,633117,015,17861,350,01002,273,280
4May 6, 2023 18:1022,401289,108,83169,947,00030,859,00029,716,480
5May 6, 2023 18:1022,561301,549,69463,083,00038,441,00029,597,696
6May 6, 2023 18:1022,830302,155,82070,960,00031,773,00029,569,024
7May 6, 2023 18:1022,884299,803,91460,631,00042,345,00029,552,640
8May 6, 2023 18:1022,966306,991,71762,818,00040,527,00029,667,328
9May 6, 2023 18:1022,978302,847,76171,158,00032,243,00029,569,024
10May 6, 2023 18:1022,984300,608,75060,024,00043,402,00029,556,736
11May 6, 2023 18:1022,996301,098,74461,286,00042,197,00029,589,504
12May 6, 2023 18:1023,060307,873,62370,198,00033,573,00029,655,040