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 4, 2024 11:45Joad NacerJoad NacerScore: 24,907Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 4, 2024 11:4518,804151,704,95184,619,89702,289,664
2May 4, 2024 11:4518,812144,232,81684,652,65402,293,760
3May 4, 2024 11:4518,872145,173,73684,922,47402,297,856
4May 4, 2024 11:4524,556296,428,33342,140,00068,361,00029,679,616
5May 4, 2024 11:4524,694297,385,80943,655,00067,467,00029,671,424
6May 4, 2024 11:4524,857306,811,67548,251,00063,604,00029,679,616
7May 4, 2024 11:4524,907297,429,40945,901,00066,182,00029,589,504
8May 4, 2024 11:4524,910304,730,06446,095,00066,000,00029,655,040
9May 4, 2024 11:4524,968303,240,46147,699,00064,659,00029,560,832
10May 4, 2024 11:4524,981302,116,21144,560,00067,853,00029,655,040
11May 4, 2024 11:4525,159304,470,10547,443,00065,774,00029,745,152
12May 4, 2024 11:4525,504309,624,82945,303,00069,465,00029,736,960