結果
問題 | No.516 赤と青の風船 |
ユーザー | 譁 ュ怜喧縺æ–‡å—åŒ |
提出日時 | 2020-08-21 00:14:50 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 666 ms |
コンパイル使用メモリ | 64,628 KB |
実行使用メモリ | 6,940 KB |
最終ジャッジ日時 | 2024-04-21 19:24:57 |
合計ジャッジ時間 | 1,223 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | WA | - |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | AC | 2 ms
5,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; }