Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

It doesn't work on new Codeforces. #158

Open
wang904 opened this issue Aug 14, 2022 · 4 comments
Open

It doesn't work on new Codeforces. #158

wang904 opened this issue Aug 14, 2022 · 4 comments

Comments

@wang904
Copy link

wang904 commented Aug 14, 2022

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.

@SHAHNUR00
Copy link

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

@woshiluo
Copy link

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

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

@dianhsu
Copy link

dianhsu commented Aug 16, 2022

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

@izlyforever
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants