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 listJul 18, 2023 18:43gchebanovgchebanovScore: 15,464Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 18, 2023 18:434,89173,372,17722,010,83902,252,800
2Jul 18, 2023 18:434,89886,939,56922,038,92502,256,896
3Jul 18, 2023 18:435,03190,602,94522,637,66602,260,992
4Jul 18, 2023 18:4315,383252,943,33034,111,00035,114,00029,519,872
5Jul 18, 2023 18:4315,402252,176,02937,242,00032,069,00029,540,352
6Jul 18, 2023 18:4315,431259,445,77935,741,00033,699,00029,626,368
7Jul 18, 2023 18:4315,464260,189,56640,405,00029,181,00029,491,200
8Jul 18, 2023 18:4315,490255,446,26236,414,00033,292,00029,626,368
9Jul 18, 2023 18:4315,510259,680,23231,407,00038,387,00029,548,544
10Jul 18, 2023 18:4315,523254,448,48034,927,00034,927,00029,528,064
11Jul 18, 2023 18:4315,558253,510,69936,573,00033,438,00029,642,752
12Jul 18, 2023 18:4315,634256,133,98933,730,00036,621,00029,511,680