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 09:57tirochkintirochkinScore: 44,607Success
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 09:5737,757241,425,733169,908,24002,215,936
2Oct 11, 2021 09:5737,809236,103,779170,139,40202,228,224
3Oct 11, 2021 09:5737,838251,481,555170,270,47802,228,224
4Oct 11, 2021 09:5744,393384,684,263161,008,00038,761,00029,556,736
5Oct 11, 2021 09:5744,523383,040,453159,878,00040,475,00029,630,464
6Oct 11, 2021 09:5744,554380,469,807147,097,00053,398,00029,732,864
7Oct 11, 2021 09:5744,607385,717,974156,468,00044,264,00029,556,736
8Oct 11, 2021 09:5744,624386,504,591153,618,00047,190,00029,782,016
9Oct 11, 2021 09:5744,798386,046,174154,452,00047,138,00029,601,792
10Oct 11, 2021 09:5744,847388,995,848148,064,00053,749,00029,560,832
11Oct 11, 2021 09:5744,874380,397,052156,041,00045,894,00029,548,544
12Oct 11, 2021 09:5744,958384,998,669154,770,00047,543,00029,560,832