Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class Main {
  3. public static void main(String[] args) {
  4. Scanner sc = new Scanner(System.in);
  5.  
  6. int a = sc.nextInt();
  7. int b = sc.nextInt();
  8. int c = sc.nextInt();
  9. int d = sc.nextInt();
  10. int s = sc.nextInt();
  11.  
  12. int N = s*(a-b);
  13. int B = s*(c-d);
  14.  
  15. if(N>B){
  16. System.out.println("Nikky");
  17. }
  18.  
  19. else if(B>N){
  20. System.out.println("Byron");
  21. }
  22.  
  23. else if(B==N){
  24. System.out.println("Tied");
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement