結果
問題 | No.516 赤と青の風船 |
ユーザー | 譁 ュ怜喧縺æ–‡å—åŒ |
提出日時 | 2020-08-21 00:14:50 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 490 ms |
コンパイル使用メモリ | 64,560 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-08-03 21:00:32 |
合計ジャッジ時間 | 1,177 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
4,376 KB |
testcase_05 | WA | - |
testcase_06 | AC | 1 ms
4,380 KB |
testcase_07 | AC | 1 ms
4,376 KB |
ソースコード
#include <iostream> using namespace std; int main(){ string s[3]; int b=0,r=0; for(int i=0;i<3;i++){ if(s[i]=="BLUE") b++; else r++; } if(b>r) cout<<"BLUE"<<endl; else cout<<"RED"<<endl; }