<水> 给大家安利一个适用于P1000以及所有类似题目的字符画自动机
  • 板块灌水区
  • 楼主cncsy
  • 当前回复22
  • 已保存回复22
  • 发布时间2020/12/27 17:43
  • 上次更新2023/11/5 05:35:43
查看原帖
<水> 给大家安利一个适用于P1000以及所有类似题目的字符画自动机
215002
cncsy楼主2020/12/27 17:43

语言:c++

废话不多说,直接上代码:

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	freopen("code.out","w",stdout);
	cout<<"#include<bits/stdc++.h>"<<endl;
	cout<<"using namespace std;"<<endl;
	cout<<"int main()"<<endl;
	cout<<"{"<<endl;
	while(getline(cin,s))
	{
		cout<<"    cout<<\"";
		cout<<s;
		cout<<"\"<<endl;"<<endl;
	}
	cout<<"    return 0;"<<endl;
	cout<<"}"<<endl;
	cout<<"//  完结撒花"<<endl; 
	return 0;
}

大家把这个程序复制到c++里面后,直接提交,然后就会发现你WA了

大家把这个程序复制到c++里面,编译后,把他要求的输出内容复制到输入框里,最后换行打一个^Z,然后程序就出来了,十分方便

本人极其蒟蒻,不喜勿喷

2020/12/27 17:43
加载中...