非常不好用
#include <iostream>
using namespace std;
string s = "https://www.luogu.com.cn/problem/";
void solve(){
int res = rand() % 3;
if(res == 0){
string p = s + "P" + to_string(rand() % 8000 + 1000);
cout << p << endl;
}
if(res == 1){
string p = s + "CF" + to_string(rand() % 2000) + (char)(rand() % 6 + 'A');
cout << p << endl;
}
if(res == 2){
string p = s + "AT_abc" + to_string(rand() % 300) + "_" + (char)(rand() % 5 + 'a');
cout << p << endl;
}
// if(res == 3){
// string p = s + "SP" + to_string(rand() % 30000);
// cout << p << endl;
// }
// if(res == 4){
// string p = s + "UVA" + to_string(rand() % 10000);
// cout << p << endl;
// }
}
int main(){
cout << "请输入随机跳转的数量";
int x;
cin >> x;
ios::sync_with_stdio(0);
cin.tie(0) , cout.tie(0);
srand(time(0));
for(int i = 1;i <= x;i ++){
solve();
}
return 0;
}