QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#137337#2357. Random Chess Gameckz#RE 0ms0kbC++20670b2023-08-10 10:38:532023-08-10 10:38:57

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-08-10 10:38:57]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2023-08-10 10:38:53]
  • 提交

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

input:


output:


result: