cf-tool icon indicating copy to clipboard operation
cf-tool copied to clipboard

It doesn't work on new Codeforces.

Open wang904 opened this issue 3 years ago • 4 comments

Because of the highlight of the test cases,the sample it fetchs includes some HTML tags. When I ran cf test a.cpp,the input is
<div class="test-example-line test-example-line-even test-example-line-0">4</div><div class="test-example-line test-example-line-odd test-example-line-1">3 1</div><div class="test-example-line test-example-line-odd test-example-line-1">2 3 1</div><div class="test-example-line test-example-line-even test-example-line-2">3 3</div><div class="test-example-line test-example-line-even test-example-line-2">1 2 3</div><div class="test-example-line test-example-line-odd test-example-line-3">4 2</div><div class="test-example-line test-example-line-odd test-example-line-3">3 4 1 2</div><div class="test-example-line test-example-line-even test-example-line-4">1 1</div><div class="test-example-line test-example-line-even test-example-line-4">1</div><div class="test-example-line test-example-line-even test-example-line-4"></div>

Hope someone can fix it.

wang904 avatar Aug 14 '22 08:08 wang904

I also faced the same issue. You can delete the content of in1.txt and copy-paste the inputs. That's the way.

SHAHNUR00 avatar Aug 15 '22 20:08 SHAHNUR00

I try to fix it, is there anyone can test it?

https://github.com/woshiluo/cf-tool/releases/tag/v1.0.2

woshiluo avatar Aug 16 '22 01:08 woshiluo

I fix it by parsing html document tree, I think it better than solutions based on regex. https://github.com/dianhsu/cf-tool

dianhsu avatar Aug 16 '22 08:08 dianhsu

Maybe https://github.com/izlyforever/cf-tool/releases/tag/v1.0.5 is one of answer

izlyforever avatar Aug 26 '22 01:08 izlyforever