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 10, 2021 17:48Andrey TsvetkovAndrey TsvetkovScore: 25,828Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 17:4818,159143,244,32981,715,29002,240,512
2Oct 10, 2021 17:4818,169143,778,45781,762,50302,232,320
3Oct 10, 2021 17:4818,191156,459,64381,859,68502,236,416
4Oct 10, 2021 17:4825,781303,845,17380,317,00035,696,00029,556,736
5Oct 10, 2021 17:4825,805309,898,58180,394,00035,730,00029,564,928
6Oct 10, 2021 17:4825,814302,270,25680,419,00035,742,00029,597,696
7Oct 10, 2021 17:4825,828303,601,82479,420,00036,804,00029,700,096
8Oct 10, 2021 17:4825,842309,137,40487,485,00028,806,00029,601,792
9Oct 10, 2021 17:4825,928312,051,96386,192,00030,482,00029,732,864
10Oct 10, 2021 17:4825,931301,582,64384,220,00032,470,00029,630,464
11Oct 10, 2021 17:4825,959308,801,68484,769,00032,047,00029,761,536
12Oct 10, 2021 17:4826,459315,538,09389,299,00029,766,00029,667,328