codeforces195a

 link:http://codeforces.com/problemset/problem/336/A

很简单的一道题目,当初有个单词不认识,isosceles原来意思是等腰的o(╯□╰)o

 1 #include <iostream>
 2 #include <cstdio>
 3 #include <cstdlib>
 4 #include <cstring>
 5 #include <cmath>
 6 #include <cctype>
 7 #include <algorithm>
 8 #include <queue>
 9 #include <deque>
10 #include <queue>
11 #include <list>
12 #include <map>
13 #include <set>
14 #include <vector>
15 #include <utility>
16 #include <functional>
17 #include <fstream>
18 #include <iomanip>
19 #include <sstream>
20 #include <numeric>
21 #include <cassert>
22 #include <ctime>
23 #include <iterator>
24 const int INF = 0x3f3f3f3f;
25 const int dir[8][2] = {{-1,0},{1,0},{0,-1},{0,1},{-1,-1},{-1,1},{1,-1},{1,1}};
26 using namespace std;
27 int main(void)
28 {
29     #ifndef ONLINE_JUDGE
30     freopen("in.txt", "r", stdin);
31     #endif // ONLINE_JUDGE
32     int x,y;
33     while (~scanf("%d%d",&x,&y))
34     {
35         int sad=abs(x)+abs(y);
36         if(x>0&&y>0) printf("%d %d %d %d\n",0,sad,sad,0);
37         else if(x>0&&y<0) printf("%d %d %d %d\n",0,-sad,sad,0);
38         else if(x<0&&y>0) printf("%d %d %d %d\n",-sad,0,0,sad);
39         else printf("%d %d %d %d\n",-sad,0,0,-sad);
40     }
41 
42     return 0;
43 }

o(╯□╰)o

posted on 2013-08-15 18:36  aries__liu  阅读(241)  评论(0编辑  收藏  举报