QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#137326 | #2357. Random Chess Game | ckz# | RE | 0ms | 0kb | C++20 | 875b | 2023-08-10 10:29:18 | 2023-08-10 10:29:21 |
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;
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;
}
詳細信息
Test #1:
score: 0
Interactor Dangerous Syscalls