您的位置:首页 > 其它

cf A. Vasily the Bear and Triangle

2014-04-20 13:56 295 查看
http://codeforces.com/contest/336/problem/A

#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;

int main()
{
int x,y;
scanf("%d%d",&x,&y);
if(x>=0&&y>=0)
{
printf("%d %d %d %d\n",0,y+x,y+x,0);
}
else if(x<0&&y>0)
{
printf("%d %d %d %d\n",x-y,0,0,y-x);
}
else if(x<0&&y<0)
{
printf("%d %d %d %d\n",x+y,0,0,x+y);
}
else if(x>0&&y<0)
{
printf("%d %d %d %d\n",0,y-x,x-y,0);
}
return 0;
}


View Code
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: