QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#137326#2357. Random Chess Gameckz#RE 0ms0kbC++20875b2023-08-10 10:29:182023-08-10 10:29:21

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

answer

#include<bits/stdc++.h>
#define ll long long
#define all(a) (a).begin(),(a).end()
using namespace std;

void solve()
{
    string s;
    fflush (stdout);
    getline(cin,s);
    cout << "e4\n";
    getline(cin,s);
    fflush (stdout);
    getline(cin,s);
    fflush (stdout);
    cout << "Bc4\n";
    fflush (stdout);
    getline(cin,s);
    fflush (stdout);
    getline(cin,s);
    fflush (stdout);
    cout << "Qf3\n";
    fflush (stdout);
    getline(cin,s);
    fflush (stdout);
    getline(cin,s);
    fflush (stdout);
    cout << "Qxf7#\n";
    fflush (stdout);
    getline(cin,s);
    if (s!="result: White won by checkmate") assert(0);
    fflush (stdout);
}

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: