結果
| 問題 |
No.2599 Summer Project
|
| コンテスト | |
| ユーザー |
GlinTFraulein
|
| 提出日時 | 2024-01-12 21:47:16 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,687 bytes |
| コンパイル時間 | 1,996 ms |
| コンパイル使用メモリ | 195,060 KB |
| 最終ジャッジ日時 | 2025-02-18 18:02:51 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
#define elif else if
#define ll long long
#define vll vector<long long>
#define vec vector
#define embk emplace_back
#define rep(i, n) for (ll i = 0; i < n; i++)
#define rep3(i, n, k) for (ll i = k; i < n; i++)
#define all(a) a.begin(), a.end()
#define YNeos(bool) (bool ? "Yes" : "No")
#define vllin(a, n) vll a(n); rep(i, n) cin >> a[i]
#define vchin(a, n) vec<char> a(n); rep(i, n) cin >> a[i]
using namespace std;
const ll INF = 1LL << 60;
const ll mod = 998244353;
//const ll mod = 1000000007;
const double pi = acos(-1);
#ifdef ATCODER
#include <atcoder/all>
using namespace atcoder;
using mint = modint998244353;
#endif
//Prototype declaration
template <class T, class... U> void gin(T&&, U&&...);
template <typename T> vector<T> read(ll);
template <typename T> void printvec(const T&);
template <class T, class... U> void printany(T&&, U&&...);
//Main Program
int main() {
string s, t; gin(s, t);
vec<string> u = {"watermelon", "beachball", "shrinebell"};
rep(i, 3) {
if (u[i] != s && u[i] != t) cout << u[i] << endl;
}
}
//Function Definition
void gin() {return;}
template <class T, class... U> void gin(T&& now, U&&... next) {
cin >> now;
gin(forward<U> (next)...);
}
template <typename T> vector<T> read(ll n) {
vector<T> v(n);
for (int i = 0; i < n; i++) cin >> v[i];
return v;
}
template <typename T> void printvec(const T& a) {
for (int i = 0; i < a.size(); i++) {
cout << a[i];
if (i == a.size() - 1) cout << endl;
else cout << ' ';
}
}
void printany() {cout << endl;}
template <class T, class... U> void printany(T&& now, U&&... next) {
cout << now << ' ';
printany(forward<U> (next)...);
}
GlinTFraulein