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 10, 2024 13:46Yuriy LyfenkoYuriy LyfenkoError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 21:22Tomislav Tunkovic32.47CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 21:220622,602,60511,493,0001,058,0002,117,632expected "3470704982416717 ", got "3470704982217277 "stderr
2Sep 4, 2026 21:220623,445,80512,466,0001,040,0002,117,632expected "-1275523770510944 ", got "-1275523770435644 "stderr
3Sep 4, 2026 21:220622,755,68711,767,0001,020,0002,117,632expected "-1274060562335926 ", got "-1274060562082426 "stderr
4Dec 12, 2024 17:572,978639,513,22612,371,0001,030,0002,260,992
5Dec 12, 2024 17:572,983639,106,62613,425,00002,523,136
6Dec 12, 2024 17:572,985640,866,02912,400,0001,033,0002,252,800
7Dec 12, 2024 17:572,986634,560,74712,403,0001,033,0002,523,136
8Dec 12, 2024 17:572,988637,162,69912,410,0001,034,0002,260,992
9Dec 12, 2024 17:572,989636,063,82912,416,0001,034,0002,260,992
10Dec 12, 2024 17:572,991637,642,18612,425,0001,035,0002,523,136
11Dec 12, 2024 17:572,993636,048,22212,432,0001,036,0002,392,064
12Dec 12, 2024 17:573,000640,950,19812,462,0001,038,0002,523,136
13Dec 12, 2024 17:573,001633,221,07012,467,0001,038,0002,523,136
14Dec 12, 2024 17:573,004636,657,61812,478,0001,039,0002,523,136
15Dec 12, 2024 17:573,018646,693,62512,539,0001,044,0002,260,992
16Dec 10, 2024 13:4510,074832,828,26212,952,00032,380,00029,732,864
17Dec 10, 2024 13:4510,119841,387,84312,418,00033,117,00029,671,424
18Dec 10, 2024 13:4610,287841,663,50814,678,00031,615,00029,671,424
19Dec 10, 2024 13:4610,348835,954,64713,304,00033,261,00029,573,120
20Dec 10, 2024 13:4610,390833,472,30213,507,00033,250,00029,741,056
21Dec 10, 2024 13:4510,413837,446,27815,619,00031,238,00029,732,864