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 10, 2023 03:05Yuriy LyfenkoYuriy LyfenkoScore: 20,388Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 10, 2023 03:0513,003118,244,16158,511,45502,228,224
2May 10, 2023 03:0513,009123,229,46358,541,86902,236,416
3May 10, 2023 03:0513,012130,491,31358,551,98002,220,032
4May 10, 2023 03:0520,273281,537,11657,144,00034,085,00029,671,424
5May 10, 2023 03:0520,356288,010,81060,015,00031,587,00029,503,488
6May 10, 2023 03:0520,371280,520,91958,058,00033,612,00029,700,096
7May 10, 2023 03:0520,388283,296,60155,845,00035,900,00029,671,424
8May 10, 2023 03:0520,391283,795,10857,476,00034,284,00029,646,848
9May 10, 2023 03:0520,416285,678,65056,920,00034,951,00029,519,872
10May 10, 2023 03:0520,488283,361,06062,205,00029,991,00029,671,424
11May 10, 2023 03:0520,566278,145,63955,527,00037,018,00029,564,928
12May 10, 2023 03:0520,586279,740,95163,617,00029,018,00029,761,536