Submission #1305794
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"); case("DH"):System.out.println("D"); case("HD"):System.out.println("D"); case("DD"):System.out.println("H"); } } }
Submission Info
Submission Time | |
---|---|
Task | A - HonestOrDishonest |
User | unirita153 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 394 Byte |
Status | WA |
Exec Time | 95 ms |
Memory | 23764 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | WA | 92 ms | 23764 KB |
0_001.txt | WA | 95 ms | 21332 KB |
0_002.txt | AC | 92 ms | 20560 KB |
1_003.txt | WA | 94 ms | 21332 KB |