Advertisement
add1ctus

Пуфи и Стојче

Feb 20th, 2015
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int x,y,z;
  8.     cin>>x>>y>>z;
  9.     if((x+y+z)%3==0)
  10.         cout<<0;
  11.     else if((x+y+z)%3==1)
  12.         cout<<2;
  13.     else
  14.         cout<<1;
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement