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 14:56Andrey TsvetkovAndrey TsvetkovScore: 48,854Success
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 14:5617,141136,583,91677,133,73902,236,416
2Oct 10, 2021 14:5617,208139,788,80177,434,94802,232,320
3Oct 10, 2021 14:5617,229140,329,41677,531,49402,240,512
4Oct 10, 2021 14:5642,156252,337,469189,703,01102,228,224
5Oct 10, 2021 14:5642,167253,956,464189,753,34402,215,936
6Oct 10, 2021 14:5642,186249,964,036189,837,24502,232,320
7Oct 10, 2021 14:5648,796403,569,477178,040,00041,542,00029,597,696
8Oct 10, 2021 14:5648,854407,730,856173,150,00046,692,00029,564,928
9Oct 10, 2021 14:5648,910404,935,053171,983,00048,114,00029,593,600
10Oct 10, 2021 14:5648,917409,025,937167,096,00053,030,00029,593,600
11Oct 10, 2021 14:5648,969407,369,933163,048,00057,314,00029,597,696
12Oct 10, 2021 14:5649,032407,902,409172,284,00048,360,00029,626,368
13Oct 10, 2021 14:5649,082404,074,091162,315,00058,556,00029,728,768
14Oct 10, 2021 14:5649,100400,216,596178,768,00042,181,00029,728,768
15Oct 10, 2021 14:5649,117401,598,956176,021,00045,005,00029,626,368