Advertisement
jakaria_hossain

codeforce - Vasily the Bear and Triangle

Mar 29th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define fastread()(ios_base::sync_with_stdio(false),cin.tie(NULL));
  4. int main()
  5. {
  6. int n,m;
  7. cin>>n>>m;
  8. int sum=abs(n)+abs(m);
  9. if(n>0 && m>0)
  10. {
  11. printf("0 %d %d 0\n",sum,sum);
  12. }
  13. else if(n<0 && m>0)
  14. {
  15. printf("-%d 0 0 %d\n",sum,sum);
  16. }
  17. else if(n<0 && m<0)
  18. {
  19. printf("-%d 0 0 -%d\n",sum,sum);
  20. }
  21. else if(n>0 && m<0)
  22. {
  23. printf("0 -%d %d 0\n",sum,sum);
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement