Submission #8077452


Source Code Expand

Copy
#include <stdio.h>

using namespace std;

int main() {
char a,b;

scanf("%c %c",&a,&b);



  if(a=='H' && b=='H')
  {

      printf("H\n");
  }

else if(a=='D' && b=='H')
{
    printf("D\n");
}
else if(a=='D' && b=='D')
{
    printf("D\n");
}
else if(a=='H' && b=='D')
{
    printf("D\n");
}
  return 0;
}



Submission Info

Submission Time
Task A - HonestOrDishonest
User vjudge3
Language C++14 (Clang 3.8.0)
Score 0
Code Size 310 Byte
Status
Exec Time 1 ms
Memory 256 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 0_000.txt, 0_001.txt, 0_002.txt
All 0 / 100 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt
Case Name Status Exec Time Memory
0_000.txt 1 ms 256 KB
0_001.txt 1 ms 256 KB
0_002.txt 1 ms 256 KB
1_003.txt 1 ms 256 KB