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 16, 2021 17:09Ilya AniskovetsIlya AniskovetsScore: 15,622Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 16, 2021 17:098,348102,805,84937,566,36702,281,472
2Oct 16, 2021 17:098,399102,178,93237,795,65002,281,472
3Oct 16, 2021 17:098,41495,612,62037,861,60002,260,992
4Oct 16, 2021 17:0915,549258,341,41240,628,00029,342,00029,683,712
5Oct 16, 2021 17:0915,577255,903,34035,049,00035,049,00029,552,640
6Oct 16, 2021 17:0915,580257,636,43738,243,00031,869,00029,663,232
7Oct 16, 2021 17:0915,622254,433,69438,552,00031,749,00029,499,392
8Oct 16, 2021 17:0915,654255,329,63035,221,00035,221,00029,646,848
9Oct 16, 2021 17:0915,692264,817,88442,368,00028,245,00029,495,296
10Oct 16, 2021 17:0915,729256,370,62838,607,00032,173,00029,540,352
11Oct 16, 2021 17:0915,791262,846,75943,358,00027,701,00029,626,368
12Oct 16, 2021 17:0915,802257,640,35334,567,00036,543,00029,548,544