Submission #19786921


Source Code Expand

#include<bits/stdc++.h>
using namespace std;

int main(void)
{
    int a,b,c;
  string ans;
    cin >>a>>b>>c;
  if(c == 0)
  {
    if(a==b){
      ans = "Aoki";
    }
      else if(a<b)
      {
        ans = "Aoki";
      }
    else if(a>b)
    {
     ans = "Takahashi";
    }
  }
  if(c == 1)
  {
    if(a==b){
      ans = "Takahashi";
    }
      else if(a<b)
      {
        ans = "Aoki";
      }
    else if(a>b)
    {
     ans = "Takahashi";
    }
  }
  
    cout << ans << endl;
}

Submission Info

Submission Time
Task A - Very Very Primitive Game
User Rey564219
Language C++ (GCC 9.2.1)
Score 100
Code Size 525 Byte
Status AC
Exec Time 7 ms
Memory 3624 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 14
Set Name Test Cases
Sample 01_sample.txt, 02_sample.txt, 03_sample.txt
All 01_sample.txt, 02_sample.txt, 03_sample.txt, 04_random.txt, 05_random.txt, 06_random.txt, 07_random.txt, 08_random.txt, 09_random.txt, 10_random.txt, 11_random.txt, 12_random.txt, 13_random.txt, 14_random.txt
Case Name Status Exec Time Memory
01_sample.txt AC 7 ms 3592 KiB
02_sample.txt AC 2 ms 3516 KiB
03_sample.txt AC 2 ms 3572 KiB
04_random.txt AC 3 ms 3572 KiB
05_random.txt AC 3 ms 3552 KiB
06_random.txt AC 2 ms 3528 KiB
07_random.txt AC 3 ms 3548 KiB
08_random.txt AC 3 ms 3516 KiB
09_random.txt AC 3 ms 3624 KiB
10_random.txt AC 2 ms 3624 KiB
11_random.txt AC 2 ms 3588 KiB
12_random.txt AC 3 ms 3484 KiB
13_random.txt AC 3 ms 3492 KiB
14_random.txt AC 2 ms 3556 KiB