結果
| 問題 |
No.2599 Summer Project
|
| コンテスト | |
| ユーザー |
nono00
|
| 提出日時 | 2024-01-12 21:30:18 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 609 bytes |
| コンパイル時間 | 3,003 ms |
| コンパイル使用メモリ | 248,772 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-27 21:21:32 |
| 合計ジャッジ時間 | 3,533 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 |
ソースコード
#include <bits/stdc++.h>
void solve() {
std::vector<std::string> a = {"watermelon", "beachball", "shrinebell"};
std::vector<std::string> b(2);
for (int i = 0; i < 2; i++) std::cin >> b[i];
for (int i = 0; i < 3; i++) {
bool ok = true;
for (int j = 0; j < 2; j++) {
if (a[i] == b[j]) {
ok = false;
}
}
if (ok) {
std::cout << a[i] << '\n';
}
}
}
int main() {
std::cin.tie(0)->sync_with_stdio(0);
std::cout << std::fixed << std::setprecision(16);
int t = 1;
while (t--) solve();
}
nono00