結果
| 問題 | No.939 and or |
| コンテスト | |
| ユーザー |
QCFium
|
| 提出日時 | 2019-12-02 09:24:28 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 432 bytes |
| 記録 | |
| コンパイル時間 | 4,599 ms |
| コンパイル使用メモリ | 190,040 KB |
| 実行使用メモリ | 1,308,288 KB |
| 最終ジャッジ日時 | 2026-05-17 09:32:17 |
| 合計ジャッジ時間 | 5,329 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | RE * 4 MLE * 2 -- * 24 |
ソースコード
#include <bits/stdc++.h>
int main() {
int n;
scanf("%d", &n);
std::pair<std::string, std::string> a[n];
std::set<std::string> pos;
for (auto &i : a) {
std::cin >> i.first >> i.second;
pos.insert(i.second);
}
for (auto &i : a) pos.erase(i.first);
for (auto &i : a) {
if (pos.count(i.second)) std::cout << i.second << std::endl, pos.erase(i.second);
}
return 0;
}
QCFium