結果

問題 No.2599 Summer Project
ユーザー Vansh SharmaVansh Sharma
提出日時 2024-01-12 21:38:19
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,153 bytes
コンパイル時間 3,099 ms
コンパイル使用メモリ 201,496 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-12 21:38:53
合計ジャッジ時間 3,654 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#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;
}
0