cf A. Vasily the Bear and Triangle
2014-04-20 13:56
295 查看
http://codeforces.com/contest/336/problem/A
View Code
#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
相关文章推荐
- CF#195(div2) A:Vasily the Bear and Triangle
- cf B. Vasily the Bear and Fly
- CodeForces #195 Div.2-A. Vasily the Bear and Triangle
- A. Vasily the Bear and Triangle
- Codeforces Round #195 (Div. 2) A Vasily the Bear and Triangle
- Codeforces 336A【 Vasily the Bear and Triangle 】
- Codeforces-336A-Vasily the Bear and Triangle
- [Codeforces Round #195 (Div. 2)] A. Vasily the Bear and Triangle
- Codeforces Round #195 (Div. 2) A. Vasily the Bear and Triangle
- [Codeforces Round #195 DIV2E (CF336E)] Vasily the Bear and Painting Square
- CF#195(div2) B:Vasily the Bear and Fly
- Codeforces Round #195 (Div. 2) B. Vasily the Bear and Fly - 找规律
- Codeforces Round #195 (Div. 2) D题Vasily the Bear and Beautiful Strings
- Codeforces Round #195 (Div. 2) C--Vasily the Bear and Sequence(贪心)
- [Codeforces Round #195 DIV2B (CF336B)] Vasily the Bear and Fly
- [Codeforces Round #195 DIV2D (CF336D)] Vasily the Bear and Beautiful Strings
- CF 842A - Kirill And The Game
- CF 226 DIV2 B. Bear and Strings
- CF 628C --- Bear and String Distance --- 简单贪心
- CF 573B(Bear and Blocks-匹配最长递增序列)