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 LyfenkoScore: 3,001Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2024 17:572,978639,513,22612,371,0001,030,0002,260,992
2Dec 12, 2024 17:572,983639,106,62613,425,00002,523,136
3Dec 12, 2024 17:572,985640,866,02912,400,0001,033,0002,252,800
4Dec 12, 2024 17:572,986634,560,74712,403,0001,033,0002,523,136
5Dec 12, 2024 17:572,988637,162,69912,410,0001,034,0002,260,992
6Dec 12, 2024 17:572,989636,063,82912,416,0001,034,0002,260,992
7Dec 12, 2024 17:572,991637,642,18612,425,0001,035,0002,523,136
8Dec 12, 2024 17:572,993636,048,22212,432,0001,036,0002,392,064
9Dec 12, 2024 17:573,000640,950,19812,462,0001,038,0002,523,136
10Dec 12, 2024 17:573,001633,221,07012,467,0001,038,0002,523,136
11Dec 12, 2024 17:573,004636,657,61812,478,0001,039,0002,523,136
12Dec 12, 2024 17:573,018646,693,62512,539,0001,044,0002,260,992
13Dec 10, 2024 13:4510,074832,828,26212,952,00032,380,00029,732,864
14Dec 10, 2024 13:4510,119841,387,84312,418,00033,117,00029,671,424
15Dec 10, 2024 13:4610,287841,663,50814,678,00031,615,00029,671,424
16Dec 10, 2024 13:4610,348835,954,64713,304,00033,261,00029,573,120
17Dec 10, 2024 13:4610,390833,472,30213,507,00033,250,00029,741,056
18Dec 10, 2024 13:4510,413837,446,27815,619,00031,238,00029,732,864