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 15, 2021 19:09Yuriy LyfenkoYuriy LyfenkoScore: 13,278Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2021 19:095,99095,687,68026,955,71302,244,608
2Oct 15, 2021 19:095,993105,597,64626,966,90802,256,896
3Oct 15, 2021 19:095,99990,269,04226,995,35502,256,896
4Oct 15, 2021 19:0913,185254,009,42928,567,00030,764,00029,679,616
5Oct 15, 2021 19:0913,244252,041,93327,186,00032,414,00029,708,288
6Oct 15, 2021 19:0913,250243,531,70828,186,00031,438,00029,761,536
7Oct 15, 2021 19:0913,278252,571,69827,344,00032,408,00029,667,328
8Oct 15, 2021 19:0913,320252,914,70626,104,00033,838,00029,548,544
9Oct 15, 2021 19:0913,323250,235,56326,978,00032,974,00029,442,048
10Oct 15, 2021 19:0913,325254,042,86527,352,00032,612,00029,708,288
11Oct 15, 2021 19:0913,405255,075,33524,309,00036,014,00029,736,960
12Oct 15, 2021 19:0913,426241,299,90728,124,00032,291,00029,507,584