跳到正文

个人记录

对拍 & 编译器 (CSP2026 RP++!!!!!)

FROGXx约 1 分钟
原文
文章信息与版本

文章信息

发布
2026年10月29日
收录
2026年11月20日
更新
2026年11月20日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<bits/stdc++.h>
using namespace std;
mt19937 rng(445423);
int rnd(int l,int r){
	return rng()%(r-l+1)+l;
}
int main(){
	while(1){
		int a=rnd(1,1e9),b=rnd(1,1e9);
		fstream io("test.in",ios::out|ios::trunc);
		io<<a<<' '<<b<<'\n';
		io.close();
		system("T1.exe");
		system("Baoli.exe");
		if(system("fc T1.out Baoli.out")){
			cout<<"WA\n";
			return 0;
		}
	}
} 
代码
-std=c++14 -O2 -static -Wall -Wextra -Wl,--stack=1000000000
原文