Skip to content

Instantly share code, notes, and snippets.

View breakTBB's full-sized avatar
🎯
Focusing

prism17 breakTBB

🎯
Focusing
  • China
View GitHub Profile
@breakTBB
breakTBB / topcoder_testcases.py
Created November 23, 2022 09:20
crawl test cases from topcoder
import httpx
import os
from bs4 import BeautifulSoup
data = {
'username' : 'prism17',
'password' : '',
'module' : 'Login'
}
problem_url = 'https://community.topcoder.com/stat?c=problem_solution&rm=319909&rd=15820&pm=12924&cr=22714443'
var li = [];
for (i = 0; i < 1; i++) {
li.push(i);
}
li.forEach(function fun(item) {
$.ajax({
type : "POST",
contentType: "application/json;charset=UTF-8",
url : "https://loj.ac/problem/312314523/testdata/delete/group" + item + ".in",
success : function(result) {
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
int T;
cin >> T;
while (T--) {