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 10:13Bernard TeoBernard TeoScore: 13,525Success
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 10:134,93983,172,23422,225,25002,277,376
2May 7, 2023 10:134,94397,652,62322,244,55602,265,088
3May 7, 2023 10:134,95186,980,62722,279,88402,260,992
4May 7, 2023 10:1313,346256,603,21826,795,00033,263,00029,687,808
5May 7, 2023 10:1313,350248,901,72925,486,00034,589,00029,687,808
6May 7, 2023 10:1313,401250,534,93829,658,00030,647,00029,687,808
7May 7, 2023 10:1313,525249,219,33527,389,00033,475,00029,667,328
8May 7, 2023 10:1313,544252,740,76327,192,00033,756,00029,679,616
9May 7, 2023 10:1313,713258,316,96829,859,00031,850,00029,712,384
10May 7, 2023 10:1313,905260,674,59729,200,00033,372,00029,675,520
11May 7, 2023 10:1314,053259,862,74837,426,00025,811,00029,585,408
12May 7, 2023 10:1314,150263,515,37728,654,00035,022,00029,683,712