online-judge-tools / oj

Tools for various online judges. Downloading sample cases, generating additional test cases, testing your code, and submitting it.
MIT License
1.03k stars 92 forks source link

[codeforces]oj d can't find samples #906

Closed peroon closed 3 years ago

peroon commented 3 years ago

Summary / 概要

At codeforces, oj d can't find samples.

Steps to reproduce / 再現方法

  1. oj d https://codeforces.com/contest/1579/problem/B

environments:

Expected behavior / 期待される挙動

Actual behavior / 実際の挙動

oj d https://codeforces.com/contest/1579/problem/B
[INFO] online-judge-tools 11.5.1 (+ online-judge-api-client 10.10.0)
[INFO] load cookie from: /home/peroon/.local/share/online-judge-tools/cookie.jar
[NETWORK] GET: https://codeforces.com/contest/1579/problem/B
[NETWORK] 200 OK
[INFO] save cookie to: /home/peroon/.local/share/online-judge-tools/cookie.jar
[ERROR] Sample not found

Other notes / その他

nalinabrol commented 3 years ago

Are you able to successfully login or submit the problem to codeforces using this?

peroon commented 3 years ago

I have already signed in. I don't use oj for submitting.

By the way, this issue disappeared. In the last 6 hours, codeforces changed something.

my shell history log

$history

// This Python code internally calls oj d. but can't find sample, so I made sample files.
 2034  2021-10-19 18:44:50 python at_first.py https://codeforces.com/contest/1567/problem/B
 2035  2021-10-19 18:44:52 cd cf_1567_problem_B_20211019/
 2036  2021-10-19 20:18:21 mkdir test
 2037  2021-10-19 20:18:25 touch test/sample-1.in
 2038  2021-10-19 20:18:27 touch test/sample-1.out

// 
 2039  2021-10-19 20:18:48 gan
 2040  2021-10-19 20:20:28 python add_sample.py
 2041  2021-10-19 20:20:48 gan
 2042  2021-10-19 23:08:56 cd ..
 2043  2021-10-19 23:08:58 mv cf_1567_problem_B_20211019/ done

// I solved above quiz, so I try another quiz. This time, oj d can find samples. (so I didn't make test files)
 2044  2021-10-19 23:09:00 python at_first.py https://codeforces.com/contest/1573/problem/A
 2045  2021-10-19 23:09:03 cd cf_1573_problem_A_20211019/
 2046  2021-10-19 23:10:05 gan
 2047  2021-10-19 23:11:11 cd ..
 2048  2021-10-19 23:11:13 mv cf_1573_problem_A_20211019/ done

// I noticed and confirm that "oj d can find samples".
 2049  2021-10-19 23:11:52 oj d https://codeforces.com/contest/1579/problem/B

I close the issue.