Submission #1305795
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String str1 = sc.next(); String str2 = sc.next(); switch (str1 + str2){ case("HH"):System.out.println("H"); break; case("DH"):System.out.println("D"); break; case("HD"):System.out.println("D"); break; case("DD"):System.out.println("H"); break; } } }
Submission Info
Submission Time | |
---|---|
Task | A - HonestOrDishonest |
User | unirita153 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 418 Byte |
Status | AC |
Exec Time | 91 ms |
Memory | 21712 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
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 | 91 ms | 21712 KB |
0_001.txt | AC | 89 ms | 21204 KB |
0_002.txt | AC | 89 ms | 19796 KB |
1_003.txt | AC | 90 ms | 20560 KB |