Submission #424561
Source Code Expand
#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<string>
using namespace std;
#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)
int n;
string s;
int r;
int b;
int main()
{
cin>>n;
rep(i,n)
{
cin>>s;
int ss=s.size();
rep(j,n)
{
if(s[j]=='R')
{
r++;
}
if(s[j]=='B')
{
b++;
}
}
}
if(r>b)
{
cout<<"TAKAHASHI"<<endl;
}
if(r==b)
{
cout<<"DRAW"<<endl;
}
if(r<b)
{
cout<<"AOKI"<<endl;
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | A - 床塗り |
| User | tainohimono |
| Language | C++ (GCC 4.9.2) |
| Score | 100 |
| Code Size | 541 Byte |
| Status | AC |
| Exec Time | 26 ms |
| Memory | 932 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | sample-01.txt, sample-02.txt, sample-03.txt |
| All | sample-01.txt, sample-02.txt, sample-03.txt, 01-01.txt, 01-02.txt, 01-03.txt, 01-04.txt, 01-05.txt, 01-06.txt, 01-07.txt, 01-08.txt, 01-09.txt, 01-10.txt, 01-11.txt, 01-12.txt, 01-13.txt, 01-14.txt, 01-15.txt, 01-16.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 01-01.txt | AC | 25 ms | 800 KiB |
| 01-02.txt | AC | 24 ms | 920 KiB |
| 01-03.txt | AC | 23 ms | 932 KiB |
| 01-04.txt | AC | 24 ms | 800 KiB |
| 01-05.txt | AC | 23 ms | 924 KiB |
| 01-06.txt | AC | 25 ms | 800 KiB |
| 01-07.txt | AC | 25 ms | 924 KiB |
| 01-08.txt | AC | 26 ms | 924 KiB |
| 01-09.txt | AC | 25 ms | 796 KiB |
| 01-10.txt | AC | 23 ms | 804 KiB |
| 01-11.txt | AC | 23 ms | 928 KiB |
| 01-12.txt | AC | 25 ms | 924 KiB |
| 01-13.txt | AC | 25 ms | 920 KiB |
| 01-14.txt | AC | 23 ms | 800 KiB |
| 01-15.txt | AC | 26 ms | 748 KiB |
| 01-16.txt | AC | 25 ms | 924 KiB |
| sample-01.txt | AC | 22 ms | 924 KiB |
| sample-02.txt | AC | 23 ms | 928 KiB |
| sample-03.txt | AC | 24 ms | 796 KiB |