| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 133602 | 任紫谦 | [在线测评解答教程] 求和 | C++ | Wrong Answer | 0 MS | 272 KB | 591 | 2025-10-19 18:09:28 |
#include<bits/stdc++.h> using namespace std; int main() { char a, b; int n, d, e; cin >> n; for(int i = 1; i <= n; i++) { cin >> a >> b; if (a == 'S' && b == 'J') { d++; } if (b == 'S' && a == 'J') { e++; } if (a == 'J' && b == 'B') { d++; } if (b == 'J' && a == 'B') { e++; } if (a == 'B' && b == 'S') { d++; } if (b == 'B' && a == 'S') { e++; } if (b == a ) { d++; e++; } } if(d>e){ cout<<"xiaoyan"; } else if(e>d){ cout<<"xiaoke"; } else{ cout<<"QAQ"; } return 0; }
------Input------
23 59
------Answer-----
276 1770
------Your output-----
xiaoke