跳到正文

个人记录

pai

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

文章信息

发布
2018年11月9日
收录
2025年12月12日
更新
2026年11月14日
篇幅
约 1 分钟

版本

  1. v1当前
C++
#include<iostream>
#include<iomanip>
#include<fstream>
#include<cstdio>
#include<algorithm>
#define gi get_int()
int get_int()
{
	int x = 0,y = 1;char ch = getchar();
	while((ch<'0'||ch>'9')&&ch!='0')ch = getchar();
	if(ch=='-')y = -1,ch = getchar();
	while(ch<='9'&&ch>='0')x = x*10+ch-'0',ch = getchar();
	return x*y;
}

int main()
{
	system("g++ code.cpp -o code");
	system("g++ AC_code.cpp -o AC_code");
	system("g++ make.cpp -o make");
	int T = 0;
	while(23333333)
	{
		std::cout<<"CASE : "<<T++<<"#";
		system("./make");
		system("./AC_code");
		system("./code");
		if(system("diff code.out AC_code.out"))
		{
			std::cout<<"WA"<<std::endl;
			return 0;
		}
		std::cout<<"AC 妖魔鬼怪快离开!妖魔鬼怪快离开!"<<std::endl;
	}
	return 0;
}
原文