結果

問題 No.495 (^^*) Easy
ユーザー RadPeria
提出日時 2017-12-04 17:25:13
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 646 bytes
コンパイル時間 177 ms
コンパイル使用メモリ 29,824 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-28 15:12:44
合計ジャッジ時間 850 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other WA * 5 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
char S[3][4];

int main(){
        for(int i=0;i<3;i++){
                scanf("%s", S[i]);
        }
        int countR=0;
        int countB=0;
        for(int i=0;i<3;i++){
                for(int k=0;k<4;k++){
                        if(S[i][k]=='R'){
                                countR++;
                        }
                        if(S[i][k]=='B'){
                                countB++;
                        }
                }
        }
        if(countR>countB){
                printf("RED\n");
        }else{
                printf("BLUE\n");
        }
        return 0;
}
0