提出 #424561
ソースコード 拡げる
#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;
}
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - 床塗り |
| ユーザ | tainohimono |
| 言語 | C++ (GCC 4.9.2) |
| 得点 | 100 |
| コード長 | 541 Byte |
| 結果 | AC |
| 実行時間 | 26 ms |
| メモリ | 932 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 100 / 100 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| 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 |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 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 |