关于对pei

我如今才开始整理这个不算晚吧......ios

望轻喷c++

学习博客学习

咱们须要四个程序spa

1.暴力.net

2.“正解”code

3.数据生成器blog

4.检查程序ci

暴力:get

就是暴力input

eg:

#include <cstdio>
#include <iostream> using namespace std; int main() { int a, b; cin >> a >> b; cout << a + b << endl; return 0; }

正解:

你以为挺对的程序

#include <cstdio>
#include <iostream> int main() { int a, b; scanf("%d %d",&a, &b); printf("%d\n", a + b); return 0; }

随机数:

#include <bits/stdc++.h>
using namespace std;
int main()
{
srand(time(0));
int a,b;
a=rand()%100+1,b=rand()%100+1;
printf("%d %d\n",a,b);
return 0;
}

检查程序:

checker.bat

:again
data.exe > input.txt
biaoda.exe < input.txt > biaoda_output.txt
test.exe < input.txt > test_output.txt
fc biaoda_output.txt test_output.txt
if not errorlevel 1 goto again
pause

谢谢收看,祝身体健康!

相关文章
相关标签/搜索