Closed Fomalhauthmj closed 4 years ago
cf-tool
gets the submission info by repeatedly download the /contest/ID/my
page, which is slower than the way Codeforces do it (with a WebSocket)
This is a WIP that implements reading from websocket:
I have just started learning Go yesterday, so there may be bad coding practices.
As a debug feature, running cf watch 0
will watch /problemset/status
.
Remark: it's unfortunate that Codeforces has a lot of useful but undocumented API, so each project have to figure out those manually.
The above version only handle the most common cases. This version will handle all cases using the content of the file preparedVerdictFormats
(however it makes the code larger)
I find that when i use "cf submit" command to submit my solution then the cmd need much long time to get feedback about result,sometime it will error because of "net/http: TLS handshake timeout".By the way,I use shadowsocks global proxy mode to open codeforces in China. 我发现在我使用cf submit 命令后 往往需要很长时间才能获得提交的反馈,而且如果不用ss的全局模式无法访问codeforces(我平时使用PAC模式访问),请问有改善的方式吗?