!萌新第一次打交互CF1375F,外星人在CF评测机中加入大肠导致WA,求调
  • 板块灌水区
  • 楼主Zq_water
  • 当前回复3
  • 已保存回复3
  • 发布时间2024/8/1 21:10
  • 上次更新2024/8/1 22:41:04
查看原帖
!萌新第一次打交互CF1375F,外星人在CF评测机中加入大肠导致WA,求调
895435
Zq_water楼主2024/8/1 21:10

rt

#include<bits/stdc++.h>
#define INF 2e18
//#define endl '\n'
#define PI acos(-1)
#define pb push_back
#define fi first
#define se second
#define int long long
#define mem(x,v) memset(x,v,sizeof x)
using namespace std;
const int N = 2e5+5;

int id,a[5];

signed main(){
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	cin>>a[1]>>a[2]>>a[3],sort(a+1,a+4);
	cout<<"First"<<endl;
	cout<<10000000000<<endl;
	cin>>id;
	cout<<a[3]*2-a[1]-a[2]<<endl;
	a[id]+=a[3]*2-a[1]-a[2];
	sort(a+1,a+4);
	cin>>id;
	cout<<a[2]-a[1]<<endl;
	return 0;
}
2024/8/1 21:10
加载中...