結果

問題 No.2599 Summer Project
ユーザー nhtloc
提出日時 2025-06-14 02:51:42
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 793 ms
コンパイル使用メモリ 78,888 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-06-14 02:51:44
合計ジャッジ時間 1,645 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main() {
    string S, T;
    cin >> S >> T;
    set<string> items = {"watermelon", "beachball", "shrinebell"};
    items.erase(S);
    items.erase(T);
    cout << *items.begin() << endl; // Chỉ còn 1 phần tử còn lại
    return 0;
}
0