結果
問題 | No.2599 Summer Project |
ユーザー |
![]() |
提出日時 | 2024-01-12 21:31:36 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 784 bytes |
コンパイル時間 | 2,346 ms |
コンパイル使用メモリ | 203,200 KB |
最終ジャッジ日時 | 2025-02-18 17:47:38 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 4 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i,n) for(int i=0;i<n;i++)#define per(i,n) for(int i=n-1;i>=0;i--)#define rng(i,c,n) for(int i=c;i<n;i++)#define fi first#define se second#define pb push_back#define sz(a) (int)a.size()#define vec(...) vector<__VA_ARGS__>#define _4aNWZeC ios::sync_with_stdio(0),cin.tie(0)using ll=long long;using pii=pair<int,int>;using vi=vector<int>;void print(){cout<<'\n';}template<class h,class...t>void print(const h&v,const t&...u){cout<<v<<' ',print(u...);}void slv(){vec(string) a={"watermelon","beachball","shrinebell"};int n=2;map<string,int> mp;rep(i,n){string s;cin>>s;mp[s]=1;}for(auto s:a){if(mp[s]==0){cout<<s<<"\n";return;}}}signed main(){_4aNWZeC;slv();}