关于对拍
  • 板块灌水区
  • 楼主sycqwq
  • 当前回复5
  • 已保存回复5
  • 发布时间2021/9/21 19:07
  • 上次更新2023/11/4 05:56:55
查看原帖
关于对拍
151647
sycqwq楼主2021/9/21 19:07

哪位大佬帮我看看这个对拍写的对不对qwq

#include<bits/stdc++.h>
#include<windows.h>
#define inf INT_MAX
using namespace std;
int main(){
	int i=0;
	while(1)
	{
		system("C:\\Users\\86189\\Desktop\\mining\\shuju.exe");
		system("C:\\Users\\86189\\Desktop\\mining\\bc.exe");
		system("C:\\Users\\86189\\Desktop\\mining\\my.exe");
		cout<<"test"<<++i<<":";
		string x;
		freopen("bc.txt","r",stdin);
		cin>>x;
		string y;
		freopen("my.txt","r",stdin);
		cin>>y;;
		if(x!=y)
		{
			cout<<"NO";
			break;
		}
		cout<<"YES"<<endl;
	}
	return 0;
}

2021/9/21 19:07
加载中...