codeforces195a

August 15, 2013
CodeForces

link:http://codeforces.com/problemset/problem/336/A 很简单的一道题目,当初有个单词不认识,isosceles原来意思是等腰的o(╯□╰)o


#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <cctype>
#include <algorithm>
#include <queue>
#include <deque>
#include <queue>
#include <list>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <functional>
#include <fstream>
#include <iomanip>
#include <sstream>
#include <numeric>
#include <cassert>
#include <ctime>
#include <iterator>
const int INF = 0x3f3f3f3f;
const int dir[8][2] = {{-1,0},{1,0},{0,-1},{0,1},{-1,-1},{-1,1},{1,-1},{1,1}};
using namespace std;
int main(void)
{
    #ifndef ONLINE_JUDGE
    freopen("in.txt", "r", stdin);
    #endif // ONLINE_JUDGE
    int x,y;
    while (~scanf("%d%d",&x,&y))
    {
        int sad=abs(x)+abs(y);
        if(x>0&&y>0) printf("%d %d %d %d\n",0,sad,sad,0);
        else if(x>0&&y<0) printf("%d %d %d %d\n",0,-sad,sad,0);
        else if(x<0&&y>0) printf("%d %d %d %d\n",-sad,0,0,sad);
        else printf("%d %d %d %d\n",-sad,0,0,-sad);
    }

    return 0;
}

o(╯□╰)o

comments powered by Disqus