Submission #1103545


Source Code Expand

import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int alice = scan.nextInt();
		int bob = scan.nextInt();
		if(alice == 1){
			alice = 14;
		}
		if(bob == 1){
			bob = 14;
		}
		
		String str;
		if(alice > bob){
			str = "Alice";
		} else if (bob > alice){
			str = "Bob";
		} else {
			str = "Draw";
		}
		
		
		System.out.println(str);
		
	}
}

Submission Info

Submission Time
Task A - One Card Poker
User kisse
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 448 Byte
Status AC
Exec Time 106 ms
Memory 22864 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All sample_01.txt, sample_02.txt, sample_03.txt, subtask_1_01.txt, subtask_1_02.txt, subtask_1_03.txt, subtask_1_04.txt, subtask_1_05.txt, subtask_1_06.txt, subtask_1_07.txt
Case Name Status Exec Time Memory
sample_01.txt AC 106 ms 19412 KB
sample_02.txt AC 92 ms 20692 KB
sample_03.txt AC 92 ms 20564 KB
subtask_1_01.txt AC 92 ms 18772 KB
subtask_1_02.txt AC 92 ms 18644 KB
subtask_1_03.txt AC 93 ms 22864 KB
subtask_1_04.txt AC 92 ms 20052 KB
subtask_1_05.txt AC 91 ms 20052 KB
subtask_1_06.txt AC 93 ms 20948 KB
subtask_1_07.txt AC 92 ms 18900 KB