| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123559 | 张修睿 | [在线测评解答教程] A+B Problem | C++ | Wrong Answer | 1 MS | 268 KB | 868 | 2025-07-06 12:42:58 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; struct a{ int daihao; char xingge; }; int main(){ int n,m,f,f1=0; cin>>n; struct a b[106]; for(int i=1;i<=n;i++){ cin>>b[i].daihao>>b[i].xingge; } int k,x; cin>>m; for(int i=1;i<=m;i++){ cin>>k; f=1; for(int j=1;j<=k;j++){ cin>>x; for(int p=1;p<=n;p++){ if(x==b[p].daihao&&b[p].xingge=='e') f=0; }} if(f){ cout<<i<<' '; f1=1;} } if(f1==0) cout<<"None"; return 0; }
------Input------
87 93
------Answer-----
180
------Your output-----
None