結果

問題 No.2599 Summer Project
コンテスト
ユーザー 👑 amentorimaru
提出日時 2023-10-24 19:51:46
言語 C++17(clang)
(clang++ 22.1.8 + boost 1.92.0 + ACL)
コンパイル:
clang++ -O2 -lm -std=c++1z -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 1 ms / 2,000 ms
+ 213µs
コード長 278 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 5,170 ms
コンパイル使用メモリ 128,768 KB
実行使用メモリ 9,712 KB
最終ジャッジ日時 2026-09-03 07:05:02
合計ジャッジ時間 6,395 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include<iostream>
#include<string>
#include<set>
#include<cassert>
using namespace std;

int main() {
  string s,t;
  cin>>s>>t;
  set<string> ss={"watermelon","shrinebell","beachball"};
  ss.erase(s);
  ss.erase(t);
  assert(ss.size()==1);
  cout<<*ss.begin();
  return 0;
}

0