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 8, 2023 21:25Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 8, 2023 21:2500000Error: expected "4816730556175027 ", got "4235897436 "stderr
2May 8, 2023 21:257,982104,303,39535,919,93002,244,608
3May 8, 2023 21:257,985100,382,72535,932,90802,248,704
4May 8, 2023 21:257,988112,453,97935,947,03102,252,800
5May 8, 2023 21:2514,200250,559,53928,190,00035,708,00029,708,288
6May 8, 2023 21:2514,255255,078,81228,300,00035,847,00029,671,424
7May 8, 2023 21:2514,365265,469,07933,964,00030,677,00029,708,288
8May 8, 2023 21:2514,392253,511,08731,850,00032,912,00029,474,816
9May 8, 2023 21:2514,401254,541,04740,179,00024,625,00029,642,752
10May 8, 2023 21:2514,425261,127,83429,505,00035,406,00029,708,288
11May 8, 2023 21:2514,446259,443,59130,473,00034,536,00029,708,288
12May 8, 2023 21:2514,492251,823,77631,555,00033,658,00029,544,448
13May 8, 2023 21:2514,666261,655,67635,997,00029,998,00029,540,352