Submission #1369642


Source Code Expand

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scanner = new Scanner(System.in);
		int a = scanner.nextInt();
		int b = scanner.nextInt();

		if(a > b){
			if(b == 1){
				System.out.println("Bob");
			}else{
				System.out.println("Alice");
			}
		}else if (a < b){
			if(a == 1){
				System.out.println("Alice");
			}else {
				System.out.println("Bob");
			}
		}else {
			System.out.println("Draw");
		}
	}
}

Submission Info

Submission Time
Task A - One Card Poker
User unirita152
Language C++14 (GCC 5.4.1)
Score 0
Code Size 539 Byte
Status CE

Compile Error

./Main.cpp:1:1: error: ‘import’ does not name a type
 import java.io.IOException;
 ^
./Main.cpp:2:1: error: ‘import’ does not name a type
 import java.util.Scanner;
 ^
./Main.cpp:4:1: error: expected unqualified-id before ‘public’
 public class Main {
 ^