Tested on Debian 12 with LXDE:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ----------- 批量注册 ----------- | |
| from os import system | |
| def reg(i): | |
| system('wget --post-data="user_id=stress_test%d&password=stress_tester&rptpassword=stress_tester&nick=压力测试者" http://example.com/JudgeOnline/register.php -O ww'%i) | |
| for i in range(1000): | |
| reg(i) | |
| # ----------- 批量提交 ----------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdio> | |
| #include <cstdlib> | |
| #include <algorithm> | |
| #include <cmath> | |
| #include <vector> | |
| using namespace std; | |
| int n,m,sz; | |
| int a[100005]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #define bool int | |
| #define true 1 | |
| #define false 0 | |
| typedef unsigned int u32; | |
| typedef unsigned long long u64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdio> | |
| #include <cstdlib> | |
| bool vis[100005]={0}; | |
| int prime[100005]={0},to=0; | |
| void init() | |
| { | |
| int i,j; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <cstdio> | |
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| using namespace std; | |
| typedef long long LL; | |
| #define K 233 | |
| #define N 50000 + 5 | |
| #define M 10000000 + 1 | |
| #define mp make_pair |
