結果

問題 No.516 赤と青の風船
ユーザー takayatakaya
提出日時 2017-07-05 13:21:21
言語 C
(gcc 12.3.0)
結果
WA  
実行時間 -
コード長 384 bytes
コンパイル時間 937 ms
コンパイル使用メモリ 28,160 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-15 18:11:21
合計ジャッジ時間 1,399 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 0 ms
5,376 KB
testcase_05 WA -
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
int main(void){
    // Here your code !
    
    int Rcnt = 0,Bcnt = 0;
    char color[5];
    for(int i = 0;i < 3;i++){
    scanf("%s",color);
    
        if(color[0] == 'R'){
            Rcnt++;
        } else {
            Bcnt++;
        }
    }
    
    if(Rcnt > Bcnt){
        printf("RED");
    } else {
        printf("BULE");
    }
    
    return 0;

}
0