Submission #3584665
Source Code Expand
#include <iostream> #include <string> #include <vector> typedef unsigned int UINT; using namespace std; bool isHoner(bool A, bool B) { /* 1 1 =1 0 1 =0 0 0 =1 1 0 =0 */ if (A == B) return true; else return false; } bool Trans(string say) { if (say[0] == 'H') return true; else return false; } int main(void) { string say1,say2; cin >> say1 >> say2; if (isHoner(Trans(say1), Trans(say2))) cout << 'H' << endl; else cout << 'D' << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - HonestOrDishonest |
User | tacchan_net |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 609 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 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 |