codeforces195a

时间:2022-05-12 08:10:54

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[][] = {{-,},{,},{,-},{,},{-,-},{-,},{,-},{,}};
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>&&y>) printf("%d %d %d %d\n",,sad,sad,);
else if(x>&&y<) printf("%d %d %d %d\n",,-sad,sad,);
else if(x<&&y>) printf("%d %d %d %d\n",-sad,,,sad);
else printf("%d %d %d %d\n",-sad,,,-sad);
} return ;
}

o(╯□╰)o

相关文章