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 10, 2021 22:29Yuriy LyfenkoYuriy LyfenkoScore: 20,305Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 22:2913,213123,049,70859,459,50402,240,512
2Oct 10, 2021 22:2913,239117,832,88459,576,84102,260,992
3Oct 10, 2021 22:2913,257112,204,82359,658,10602,265,088
4Oct 10, 2021 22:2920,185272,339,31259,510,00031,321,00029,446,144
5Oct 10, 2021 22:2920,243282,077,56255,832,00035,262,00029,708,288
6Oct 10, 2021 22:2920,287275,531,91863,035,00028,257,00029,708,288
7Oct 10, 2021 22:2920,305273,613,67356,378,00034,993,00029,708,288
8Oct 10, 2021 22:2920,451288,250,25362,796,00029,232,00029,569,024
9Oct 10, 2021 22:2920,466282,438,13054,887,00037,212,00029,495,296
10Oct 10, 2021 22:2920,479282,542,99963,224,00028,933,00029,720,576
11Oct 10, 2021 22:2920,490279,997,30763,665,00028,539,00029,663,232
12Oct 10, 2021 22:2920,621287,833,40162,214,00030,579,00029,483,008