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 21, 2023 15:21Bernard TeoBernard TeoScore: 12,758Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 15:213,96884,857,56117,858,04602,281,472
2May 21, 2023 15:214,03482,758,13618,151,85002,273,280
3May 21, 2023 15:214,06287,553,97818,279,47502,269,184
4May 21, 2023 15:2112,389241,486,01520,540,00035,212,00029,499,392
5May 21, 2023 15:2112,731250,047,62025,942,00031,347,00029,503,488
6May 21, 2023 15:2112,750248,551,53623,742,00033,634,00029,728,768
7May 21, 2023 15:2112,758248,760,85922,262,00035,151,00029,634,560
8May 21, 2023 15:2112,822247,656,58620,981,00036,717,00029,601,792
9May 21, 2023 15:2112,873249,691,67126,896,00031,033,00029,634,560
10May 21, 2023 15:2113,307259,211,69317,964,00041,916,00029,712,384
11May 21, 2023 15:2113,335258,060,19021,974,00038,032,00029,597,696
12May 21, 2023 15:2113,423257,204,31524,419,00035,986,00029,634,560