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,335Success
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,993114,240,19026,969,00002,252,800
2Oct 15, 2021 19:095,99882,885,43226,992,62802,240,512
3Oct 15, 2021 19:096,00095,355,79626,998,62402,248,704
4Oct 15, 2021 19:0913,187252,289,71426,601,00032,740,00029,519,872
5Oct 15, 2021 19:0913,289249,450,33828,326,00031,474,00029,708,288
6Oct 15, 2021 19:0913,299248,703,08423,224,00036,623,00029,577,216
7Oct 15, 2021 19:0913,335245,151,29825,577,00034,430,00029,708,288
8Oct 15, 2021 19:0913,349253,919,33528,396,00031,673,00029,544,448
9Oct 15, 2021 19:0913,395248,147,03929,063,00031,216,00029,478,912
10Oct 15, 2021 19:0913,396254,052,75229,549,00030,731,00029,642,752
11Oct 15, 2021 19:0913,412249,460,67831,383,00028,969,00029,667,328
12Oct 15, 2021 19:0913,484254,094,15432,767,00027,913,00029,708,288