Skip to content

Commit

Permalink
finish!
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Feb 21, 2024
1 parent 8f4d23c commit 747d077
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion luogu-cli/problem.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ int submit(char *pro,char *code){
char *tok=malloc(100);
readconf(cli,uid);
crsf_pro(tok,pro);
sleep(1);
char *buf2=malloc(10000000);
sprintf(buf,"curl --cookie \"__client_id=%s\" --cookie \"_uid=%s\" --user-agent \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36 Edg/121.0.0.0\" -X POST -H \"Content-Type: application/json\" -e \"https://www.luogu.com.cn/problem/%s\" https://www.luogu.com.cn/fe/api/problem/submit/%s -d @/tmp/data.json -H \"X-Csrf-Token: %s\" > /tmp/luogu-cli.txt",cli,uid,pro,pro,tok);
sprintf(buf2,"{\"enableO2\":1,\"lang\":28,\"code\":\"%s\"}",code);
Expand Down

0 comments on commit 747d077

Please # to comment.