QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#137337 | #2357. Random Chess Game | ckz# | RE | 0ms | 0kb | C++20 | 670b | 2023-08-10 10:38:53 | 2023-08-10 10:38:57 |
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]!=' ')
{
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;
while(t--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Interactor Dangerous Syscalls