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 listDec 12, 2024 17:58Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Jul 3, 2026 11:00Victor Mercklé10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 3, 2026 11:00021,539,44311,128,0001,030,0002,117,632expected "6397993107227612 ", got "6397993212700412 "stderr
2Jul 3, 2026 11:00021,452,06211,072,0001,012,0002,117,632expected "6397993107227612 ", got "6397993212700412 "stderr
3Jul 3, 2026 11:00021,490,75411,123,0001,010,0002,117,632expected "6397993107227612 ", got "6397993212700412 "stderr
4Dec 12, 2024 17:522,97725,862,82612,367,0001,030,0002,265,088
5Dec 12, 2024 17:522,98534,456,77512,399,0001,033,0002,265,088
6Dec 12, 2024 17:522,98634,927,05013,435,00002,265,088
7Dec 12, 2024 17:522,98830,097,72312,413,0001,034,0002,392,064
8Dec 12, 2024 17:522,98935,517,86812,415,0001,034,0002,396,160
9Dec 12, 2024 17:582,98941,099,32912,415,0001,034,0002,265,088
10Dec 12, 2024 17:522,99130,045,79613,461,00002,527,232
11Dec 12, 2024 17:582,99335,929,54413,467,00002,265,088
12Dec 12, 2024 17:522,99428,805,16512,435,0001,036,0002,392,064
13Dec 12, 2024 17:522,99530,625,52412,441,0001,036,0002,396,160
14Dec 12, 2024 17:582,99933,005,15612,459,0001,038,0002,265,088
15Dec 12, 2024 17:523,00034,259,60413,502,00002,265,088