QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#137345#2357. Random Chess Gameckz#RE 0ms0kbC++20673b2023-08-10 10:48:312023-08-10 10:48:32

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:48:32]
  • 评测
  • 测评结果:RE
  • 用时:0ms
  • 内存:0kb
  • [2023-08-10 10:48:31]
  • 提交

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

input:


output:


result: