rt,悬一关
码风见谅。
题目链接
交到CF评测机上爆WA,结果是:回答错误。输出格式错误。文件意外结束,应为int64(Wrong Answer.wrong output format Unexpected end of file - int64 expected)
code
#include<bits/stdc++.h>
#define int long long
using namespace std;
const int INF = 1e10;
int a[4];
int pos;
signed main()
{
cin >> a[1] >> a[2] >> a[3];
cout << "First\n";
fflush(stdout);
cout << INF << "\n";
fflush(stdout);
cin >> pos;
if(!pos) exit(0);
a[pos] += INF;
int res = 2 * a[pos];
for(int i = 1;i <= 3;i++) if(i != pos) res -= a[i];
cout << res << "\n";
fflush(stdout);
sort(a + 1,a + 4);
cin >> pos;
if(!pos) exit(0);
cout << a[2] - a[1] << "\n";
fflush(stdout);
cin >> pos;
if(!pos) exit(0);
}