社区讨论

60 分,Subtask #3 全错,求调

P8964梦幻 | Reopening of Dream参与者 4已保存回复 8

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
8 条
当前快照
1 份
快照标识符
@m2cq1uji
此快照首次捕获于
2024/10/17 11:08
去年
此快照最后确认于
2025/11/04 17:01
4 个月前
查看原帖
CPP
#include<bits/stdc++.h>
using namespace std;
#define int long long
int t,n,m;
string s[1005];
signed main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	cin>>t>>n>>m;
	for(int i=1;i<=m;i++){
		cin>>s[i];
	}
	for(int i=1;i<=n;i++){
		string t,t1,ans="";
		for(int j=1;j<=m;j++){
			cin>>t>>t1;
			if(ans!=""&&ans!="PION2202 RP++."){
				continue;
			}
			if(t.substr(0,9)=="//freopen"||t1.substr(0,9)=="//freopen"){
				ans="Wrong file operation takes you to your ancestors along with your 3 years' efforts on OI.";
			}else{
				t.erase(0,9),t1.erase(0,9);
				reverse(t.begin(),t.end());
				reverse(t1.begin(),t1.end());
				t.erase(0,16);
				t1.erase(0,18);
				reverse(t.begin(),t.end());
				reverse(t1.begin(),t1.end());
				if(t==s[j]&&t1==s[j]){
					ans="PION2202 RP++.";
				}else{
					ans="Good luck and have fun.";
				}	
			}
		}
		cout<<ans<<'\n';
	}
	return 0;
}

回复

8 条回复,欢迎继续交流。

正在加载回复...