結果

問題 No.2599 Summer Project
ユーザー lumidlumid
提出日時 2024-01-12 21:22:56
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,274 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 201,908 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-01-12 21:23:00
合計ジャッジ時間 2,568 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,548 KB
testcase_01 AC 2 ms
6,548 KB
testcase_02 AC 2 ms
6,548 KB
testcase_03 AC 2 ms
6,548 KB
testcase_04 AC 2 ms
6,548 KB
testcase_05 AC 2 ms
6,548 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

// 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();
}
0