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 11, 2021 23:01Vitaliy F.Vitaliy F.Score: 72,004Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 11, 2021 23:0164,495358,844,163290,227,19602,232,320
2Oct 11, 2021 23:0164,538348,066,648290,419,71802,232,320
3Oct 11, 2021 23:0164,561363,670,787290,526,30502,232,320
4Oct 11, 2021 23:0171,764511,440,319277,806,00045,131,00029,569,024
5Oct 11, 2021 23:0171,963508,918,427276,990,00046,843,00029,556,736
6Oct 11, 2021 23:0171,996509,363,002274,525,00049,455,00029,564,928
7Oct 11, 2021 23:0172,004513,334,401278,158,00045,861,00029,564,928
8Oct 11, 2021 23:0172,026509,523,440278,822,00045,296,00029,728,768
9Oct 11, 2021 23:0172,070511,022,364267,914,00056,403,00029,556,736
10Oct 11, 2021 23:0172,096509,413,705274,293,00050,139,00029,560,832
11Oct 11, 2021 23:0172,149511,868,814265,461,00059,210,00029,761,536
12Oct 11, 2021 23:0172,199511,011,275269,744,00055,152,00029,626,368