Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Main {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- int a = sc.nextInt();
- int b = sc.nextInt();
- int c = sc.nextInt();
- int d = sc.nextInt();
- int s = sc.nextInt();
- int N = s*(a-b);
- int B = s*(c-d);
- if(N>B){
- System.out.println("Nikky");
- }
- else if(B>N){
- System.out.println("Byron");
- }
- else if(B==N){
- System.out.println("Tied");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement