Submission #3591613
Source Code Expand
#include <bits/stdc++.h> int main() { char a, b; scanf("%c %c", &a, &b); if ((a == 'H') ^ (b == 'H')) printf("D\n"); else printf("H\n"); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - HonestOrDishonest |
User | TanakaTaroh |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 180 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:6:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c %c", &a, &b); ^
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 | 1 ms | 256 KB |
0_001.txt | AC | 1 ms | 256 KB |
0_002.txt | AC | 1 ms | 256 KB |
1_003.txt | AC | 1 ms | 256 KB |