結果
問題 | No.516 赤と青の風船 |
ユーザー |
|
提出日時 | 2019-09-14 18:35:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 610 bytes |
コンパイル時間 | 1,321 ms |
コンパイル使用メモリ | 166,992 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 08:35:06 |
合計ジャッジ時間 | 1,755 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h>using namespace std;using ll = long long;#define FOR(i, m, n) for (int i = (m); i < (n); i++)#define REP(i, n) FOR(i, 0, n)#define REP1(i, n) FOR(i, 1, (n) + 1)#define ALL(c) (c).begin(), (c).end()template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return true;} return false;}template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return true;} return false;}const int MOD = 1000000007;int main() {int r = 0;string s;REP(i, 3) {cin >> s;if (s == "RED") r++;}cout << (r >= 2 ? "RED" : "BLUE") << endl;}