結果
問題 | No.2599 Summer Project |
ユーザー |
|
提出日時 | 2024-03-19 19:09:48 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 524 bytes |
コンパイル時間 | 558 ms |
コンパイル使用メモリ | 67,492 KB |
最終ジャッジ日時 | 2025-02-20 07:47:39 |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 |
ソースコード
#include <iostream>#define ll long longusing namespace std;int main(){string a,b;cin >> a >> b;if((a == "beachball" && b == "watermelon") || (b == "beachball" && a == "watermelon")){cout << "shrinebell" << endl;}else if((a == "shrinebell" && b == "beachball") || (a == "beachball" && b == "shrinebell")){cout << "watermelon" << endl;}else if((a == "shrinebell" && b == "watermelon") || (b == "shrinebell" && a == "watermelon")){cout << "beachball" << endl;}}