Submission #1178160


Source Code Expand

import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        String b = sc.next();
        String H = "H";
        String D = "D";
        if(a.equals(H)){
        	if(b.equals(H)) System.out.println("H");
        	else if(b.equals(D)) System.out.println("D");
        }else if(a.equals(D)){
        	if(b.equals(H)) System.out.println("D");
        	else if(b.equals(D)) System.out.println("H");
        }
	}

}

Submission Info

Submission Time
Task A - HonestOrDishonest
User ne280035b
Language Java8 (OpenJDK 1.8.0)
Score 100
Code Size 575 Byte
Status AC
Exec Time 107 ms
Memory 21844 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 107 ms 20180 KB
0_001.txt AC 89 ms 19284 KB
0_002.txt AC 86 ms 21844 KB
1_003.txt AC 89 ms 21332 KB