結果
| 問題 |
No.2599 Summer Project
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-12 21:38:19 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,153 bytes |
| コンパイル時間 | 2,100 ms |
| コンパイル使用メモリ | 192,996 KB |
| 最終ジャッジ日時 | 2025-02-18 17:53:42 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define max(a, b) (a < b ? b : a)
#define min(a, b) ((a > b) ? b : a)
#define mod 1e9 + 7
#define FOR(a, c) for (int(a) = 0; (a) < (c); (a)++)
#define FORL(a, b, c) for (int(a) = (b); (a) <= (c); (a)++)
#define FORR(a, b, c) for (int(a) = (b); (a) >= (c); (a)--)
#define INF 1000000000000000003
typedef long long int ll;
typedef vector<int> vi;
typedef pair<int, int> pi;
#define F first
#define S second
#define PB push_back
#define POB pop_back
#define MP make_pair
void solve(){
string s,t;
cin>>s>>t;
if((s=="beachball" && t=="watermelon") || (s=="watermelon" && t=="beachball")){
cout<<"shrinebell"<<endl;
}
else if((s=="watermelon" && t=="shrinebell") ||(s=="shrinebell" && t=="watermelon")){
cout<<"beachball"<<endl;
}
else{
cout<<"watermelon"<<endl;
}
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#endif // ONLINE_JUDGE
int T=1;
// cin >> T;
while (T--) {
solve();
}
return 0;
}