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 01:50Yuriy LyfenkoYuriy LyfenkoScore: 15,662Success
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 01:508,39498,756,23337,770,79902,248,704
2Oct 11, 2021 01:508,407101,384,01237,831,50002,248,704
3Oct 11, 2021 01:508,417114,435,43737,875,32102,256,896
4Oct 11, 2021 01:5015,549256,153,10640,907,00029,065,00029,667,328
5Oct 11, 2021 01:5015,635257,818,20335,179,00035,179,00029,671,424
6Oct 11, 2021 01:5015,652261,252,57940,720,00029,714,00029,519,872
7Oct 11, 2021 01:5015,662263,892,21833,384,00037,093,00029,712,384
8Oct 11, 2021 01:5015,704265,321,58435,819,00034,851,00029,708,288
9Oct 11, 2021 01:5015,812268,691,20441,790,00029,366,00029,741,056
10Oct 11, 2021 01:5015,814258,260,64540,362,00030,802,00029,704,192
11Oct 11, 2021 01:5015,976261,646,43742,687,00029,207,00029,708,288
12Oct 11, 2021 01:5016,017265,147,46938,158,00033,918,00029,667,328