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 01:07Yuriy LyfenkoYuriy LyfenkoScore: 17,085Success
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 01:0710,005111,747,45745,023,22402,248,704
2Oct 11, 2021 01:0710,007118,069,30345,030,82102,248,704
3Oct 11, 2021 01:0710,008107,975,61845,036,85202,240,512
4Oct 11, 2021 01:0716,881266,948,52139,388,00036,575,00029,708,288
5Oct 11, 2021 01:0717,072267,701,88244,815,00032,010,00029,736,960
6Oct 11, 2021 01:0717,079267,373,94948,310,00028,547,00029,708,288
7Oct 11, 2021 01:0717,085264,034,38738,905,00037,979,00029,544,448
8Oct 11, 2021 01:0717,174267,304,27643,159,00034,126,00029,675,520
9Oct 11, 2021 01:0717,292270,546,89147,128,00030,688,00029,544,448
10Oct 11, 2021 01:0717,354270,226,07945,378,00032,714,00029,544,448
11Oct 11, 2021 01:0717,380271,837,89946,070,00032,142,00029,667,328
12Oct 11, 2021 01:0717,434273,869,88546,410,00032,045,00029,708,288