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 listMay 21, 2023 09:20Bernard TeoBernard TeoScore: 13,614Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 21, 2023 09:204,836110,691,75521,761,42502,273,280
2May 21, 2023 09:204,84486,987,22721,796,87302,273,280
3May 21, 2023 09:204,88778,502,77021,993,50102,273,280
4May 21, 2023 09:2013,469254,648,57828,815,00031,796,00029,503,488
5May 21, 2023 09:2013,572247,715,48224,430,00036,645,00029,634,560
6May 21, 2023 09:2013,613256,550,00424,323,00036,935,00029,769,728
7May 21, 2023 09:2013,614249,348,87927,848,00033,417,00029,548,544
8May 21, 2023 09:2013,646253,674,14523,293,00038,116,00029,671,424
9May 21, 2023 09:2013,729248,929,70129,747,00032,035,00029,634,560
10May 21, 2023 09:2013,732254,989,18133,515,00028,278,00029,564,928
11May 21, 2023 09:2014,008260,541,11727,452,00035,586,00029,634,560
12May 21, 2023 09:2014,140258,784,50230,680,00032,952,00029,634,560