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 listOct 15, 2021 07:13Ilya AniskovetsIlya AniskovetsScore: 17,988Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 07:1310,591103,589,91547,659,53102,260,992
2Oct 15, 2021 07:1310,639118,948,37147,877,01502,256,896
3Oct 15, 2021 07:1310,733104,740,40348,299,80602,252,800
4Oct 15, 2021 07:1317,794263,111,86746,041,00034,030,00029,552,640
5Oct 15, 2021 07:1317,956268,282,04746,027,00034,776,00029,761,536
6Oct 15, 2021 07:1317,963268,366,96848,092,00032,743,00029,650,944
7Oct 15, 2021 07:1317,988267,996,00548,157,00032,788,00029,757,440
8Oct 15, 2021 07:1318,028266,407,60246,071,00035,054,00029,540,352
9Oct 15, 2021 07:1318,067276,142,83653,426,00027,874,00029,544,448
10Oct 15, 2021 07:1318,105268,876,26045,704,00035,768,00029,548,544
11Oct 15, 2021 07:1318,164271,534,53847,596,00034,144,00029,663,232
12Oct 15, 2021 07:1318,409271,906,92052,927,00029,915,00029,663,232