結果
問題 | No.516 赤と青の風船 |
ユーザー |
|
提出日時 | 2017-10-20 00:24:37 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 408 bytes |
コンパイル時間 | 210 ms |
コンパイル使用メモリ | 28,032 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-21 07:46:12 |
合計ジャッジ時間 | 879 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
#include <stdio.h>int main(void){int r = 0,l = 0;char a[5],b[5],c[5];scanf("%s%s%s",a,b,c);if (a[0] == 'R') {r++;}else{l++;}if (b[0] == 'R') {r++;}else{l++;}if (c[0] == 'R') {r++;}else{l++;}if (r > l) {printf("RED\n");}else{printf("BLUE\n");}return 0;}