Advertisement
Guest User

Untitled

a guest
Nov 26th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. amocana 3;
  2.  
  3. public void run(){
  4. int a = readInt();
  5. int b = readInt();
  6. if(a<b){
  7. int c = b;
  8. b=a;
  9. a=c;
  10. }
  11. int x =a;
  12. int y =b;
  13.  
  14. while(y!=0){
  15. int c=x;
  16. x=y;
  17. y=c%x;
  18. }
  19.  
  20. if(a/x-2<0 || (a/x)%2==0){
  21. println("meore igebs");
  22. } else{
  23. println("pirveli igebs");
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement