QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#137345 | #2357. Random Chess Game | ckz# | RE | 0ms | 0kb | C++20 | 673b | 2023-08-10 10:48:31 | 2023-08-10 10:48:32 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
#define all(a) (a).begin(),(a).end()
using namespace std;
void solve()
{
string s,ans;
while (1)
{
getline(cin,s);
fflush (stdout);
int q=13;
ans="";
while (s[q]!=' ' && q<s.size())
{
ans+=s[q];
q++;
}
cout << ans << "\n";
fflush (stdout);
getline(cin,s);
fflush (stdout);
if (s[0]=='r') break;
}
}
signed main()
{
// ios::sync_with_stdio(false);
// cin.tie(nullptr);cout.tie(nullptr);
int t = 1;
//cin >> t;
solve();
return 0;
}
详细
Test #1:
score: 0
Interactor Dangerous Syscalls