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:25Yuriy LyfenkoYuriy LyfenkoScore: 13,240Success
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:255,98890,237,84026,947,44002,260,992
2Oct 15, 2021 19:255,992101,356,09026,964,80602,260,992
3Oct 15, 2021 19:255,99587,007,63126,977,36702,252,800
4Oct 15, 2021 19:2513,112247,562,03522,016,00036,987,00029,642,752
5Oct 15, 2021 19:2513,191246,275,80726,034,00033,324,00029,708,288
6Oct 15, 2021 19:2513,226252,679,38828,696,00030,822,00029,663,232
7Oct 15, 2021 19:2513,240246,542,45924,205,00035,377,00029,474,816
8Oct 15, 2021 19:2513,318251,110,69026,410,00033,520,00029,671,424
9Oct 15, 2021 19:2513,319254,415,63725,687,00034,250,00029,667,328
10Oct 15, 2021 19:2513,335250,076,38826,444,00033,563,00029,675,520
11Oct 15, 2021 19:2513,543251,057,61226,857,00034,088,00029,708,288
12Oct 15, 2021 19:2513,699262,119,81326,713,00034,933,00029,704,192