結果
問題 | No.516 赤と青の風船 |
ユーザー |
![]() |
提出日時 | 2017-08-29 00:05:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 611 bytes |
コンパイル時間 | 1,619 ms |
コンパイル使用メモリ | 168,868 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-06 08:39:38 |
合計ジャッジ時間 | 2,029 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define REP(i,n) for(int i=0; i<(n); i++)#define REP2(i,x,n) for(int i=x; i<(n); i++)#define ALL(n) begin(n),end(n)#define SORT(x) sort((x).begin(),(x).end(),greater<int>())using LL=long long;using ULL=unsigned long long;using PII=pair<int,int>;const int INF = numeric_limits<int>::max();struct cww{cww(){ios::sync_with_stdio(false);cin.tie(0);}}star;int main(){vector<string> S( 3 );for( auto &x : S ){cin >> x;}cout << ( count( ALL( S ), "RED" ) > count( ALL( S ), "BLUE" ) ? "RED" : "BLUE" ) << endl;return 0;}