結果
| 問題 |
No.2599 Summer Project
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-12 21:22:56 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,274 bytes |
| コンパイル時間 | 2,238 ms |
| コンパイル使用メモリ | 192,664 KB |
| 最終ジャッジ日時 | 2025-02-18 17:34:53 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
// Source: https://usaco.guide/general/io
#include <bits/stdc++.h>
#include <climits>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef long double ld;
typedef pair<ll, ll> pll;
#define FOR(i, a, b) for(int i = a; i < b; i++)
#define ROF(i, a, b) for(int i = a; i >= b; i--)
#define ms memset
#define pb push_back
#define fi first
#define se second
#define inp(n, a) vector<ll> a;for(int i=0;i<n;i++){ll now;cin>>now;a.pb(now);}
#define all(a) a.begin(),a.end()
#define show(a) for(long long loppls=0;loppls<(long long)(a.size()-1);loppls++)cout<<a[loppls]<<' ';cout<<a[a.size()-1];
long long binpow(long long a, long long b) {
long long res = 1;
while (b > 0) {
if (b & 1)
res = res * a;
a = a * a;
b >>= 1;
}
return res;
}
ll sum2(ll a, ll l, ll n){return (n*(a+l))/2;}
ll ceil2(ll a, ll b){return (a+b-1)/b;}
const long long INF=1e16,MAX=300020,MOD=1e9+7;
void solve() {
string s,t;cin>>s>>t;
if(s!="watermelon"&&t!="watermelon")cout<<"watermelon";
if(s!="shrinebell"&&t!="shrinebell")cout<<"shrinebell";
if(s!="beachball"&&t!="beachball")cout<<"beachball";
}
int main() {
ios::sync_with_stdio(false);
cin.tie(NULL);
solve();
}