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 14:14Bernard TeoBernard TeoScore: 13,608Success
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 14:174,98298,327,96722,418,66002,265,088
2May 7, 2023 14:174,98684,087,09622,438,92202,265,088
3May 7, 2023 14:175,00577,157,03422,523,72202,265,088
4May 7, 2023 14:146,97098,016,87631,364,20102,256,896
5May 7, 2023 14:146,97588,463,06831,388,07002,260,992
6May 7, 2023 14:147,00991,219,99131,542,60302,265,088
7May 7, 2023 14:1713,287246,224,06428,426,00031,366,00029,474,816
8May 7, 2023 14:1413,352248,652,28925,750,00034,333,00029,687,808
9May 7, 2023 14:1713,389246,785,61628,643,00031,606,00029,720,576
10May 7, 2023 14:1413,447252,060,45926,697,00033,816,00029,687,808
11May 7, 2023 14:1713,494246,895,66028,025,00032,696,00029,687,808
12May 7, 2023 14:1713,494253,484,02930,362,00030,362,00029,556,736
13May 7, 2023 14:1413,608254,025,61733,875,00027,360,00029,712,384
14May 7, 2023 14:1413,660257,917,67924,053,00037,417,00029,687,808
15May 7, 2023 14:1713,722249,075,36730,413,00031,335,00029,618,176
16May 7, 2023 14:1413,726254,205,49323,163,00038,605,00029,683,712
17May 7, 2023 14:1413,809258,660,76225,766,00036,376,00029,483,008
18May 7, 2023 14:1413,881259,150,59126,168,00036,298,00029,720,576
19May 7, 2023 14:1713,913258,511,59525,878,00036,731,00029,569,024
20May 7, 2023 14:1414,038261,264,68729,480,00033,692,00029,679,616
21May 7, 2023 14:1714,073259,800,92029,152,00034,178,00029,720,576
22May 7, 2023 14:1714,098264,363,25629,203,00034,238,00029,687,808
23May 7, 2023 14:1714,164266,744,65430,065,00033,673,00029,720,576
24May 7, 2023 14:1414,289270,133,27730,076,00034,225,00029,659,136