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 19:20Yurkov AlekseyYurkov AlekseyScore: 20,546Success
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 19:2013,084124,445,62858,880,15302,281,472
2Oct 11, 2021 19:2013,091128,340,23658,908,82402,277,376
3Oct 11, 2021 19:2013,092135,865,29258,915,38602,269,184
4Oct 11, 2021 19:2020,456284,698,70957,031,00035,019,00029,552,640
5Oct 11, 2021 19:2020,471284,498,28952,507,00039,611,00029,630,464
6Oct 11, 2021 19:2020,480286,555,78655,885,00036,276,00029,564,928
7Oct 11, 2021 19:2020,546280,863,61060,577,00031,882,00029,630,464
8Oct 11, 2021 19:2020,547282,542,47862,741,00029,719,00029,663,232
9Oct 11, 2021 19:2020,562281,692,72757,959,00034,572,00029,638,656
10Oct 11, 2021 19:2020,602278,658,50462,168,00030,539,00029,630,464
11Oct 11, 2021 19:2020,644289,882,77660,863,00032,033,00029,548,544
12Oct 11, 2021 19:2020,646282,907,02057,561,00035,344,00029,630,464