結果
| 問題 |
No.516 赤と青の風船
|
| コンテスト | |
| ユーザー |
asdfghjkl;
|
| 提出日時 | 2020-03-09 01:03:33 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 309 bytes |
| コンパイル時間 | 352 ms |
| コンパイル使用メモリ | 28,288 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-07 20:21:59 |
| 合計ジャッジ時間 | 617 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 |
ソースコード
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main(void){
char s[3][25];
scanf("%s",s[0]);
scanf("%s",s[1]);
scanf("%s",s[2]);
int r=0,b=0;
if(s[0][0]=='R'){r++;}
else{b++;}
if(s[1][0]=='R'){r++;}
else{b++;}
if(s[2][0]=='R'){r++;}
else{b++;}
if(r>b){printf("RED\n");}
else{printf("BLUE\n");}
}
asdfghjkl;