竞赛讨论区 > 我提交了一二十遍。。。。
头像
这就开摆的修勾很完美
编辑于 2018-12-10 15:39
+ 关注

我提交了一二十遍。。。。

为什么我H题老是过99.99%
#include<iostream>
#include<cstdio>
using namespace std;

int main()
{
int x,y,stepless,k,hhh,ttt;
long long int a;
while(cin>>x>>y>>a)
{
//if(x==0&y==0)

if(x<0)
x=-x;
if(y<0)
y=-y;
k=0;


if(x>y)
stepless=x;
else if(x<=y)
stepless=y;
if((x+y)%2!=0)
{
//cout<<"Not the fate"<<endl;
k=1;
}
else  if(a<stepless||stepless%2!=a%2)
{
k=2;
}
else
{
k=3;
}
if(k==3)
puts("We are together");
else if(k==1)
puts("Not the fate");
else if(k==2)
puts("You are lying");
}
return 0;
}

全部评论

(1) 回帖
加载中...
话题 回帖

等你来战

查看全部

热门推荐