Submission #1306812


Source Code Expand

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		String str=in.nextLine();
		char ch1=str.charAt(0);
		char ch2=str.charAt(2);
		//System.out.println(ch1+"=="+ch2);
		
		if(ch1=='H'){
			if(ch2=='H'){
				System.out.println("H");
			}else if(ch2=='D'){
				System.out.println("D");
			}
		}else if(ch1=='D'){
			if(ch2=='H'){
				System.out.println("D");
			}else if(ch2=='D'){
				System.out.println("H");
			}
		}
	}
}

Submission Info

Submission Time
Task A - HonestOrDishonest
User indcn20172338
Language Java7 (OpenJDK 1.7.0)
Score 100
Code Size 520 Byte
Status AC
Exec Time 93 ms
Memory 20820 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 4
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt
Case Name Status Exec Time Memory
0_000.txt AC 93 ms 20820 KB
0_001.txt AC 92 ms 19028 KB
0_002.txt AC 91 ms 18900 KB
1_003.txt AC 92 ms 20820 KB