結果
問題 |
No.938 賢人を探せ
|
ユーザー |
👑 |
提出日時 | 2019-12-01 00:06:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 408 bytes |
コンパイル時間 | 869 ms |
コンパイル使用メモリ | 80,524 KB |
実行使用メモリ | 8,656 KB |
最終ジャッジ日時 | 2024-11-21 03:45:49 |
合計ジャッジ時間 | 2,206 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 1 |
other | AC * 10 WA * 11 |
ソースコード
#include <iostream> #include <set> #include <vector> using namespace std; int main(){ int n;cin>>n; set<string> s1; vector<string> s2; set<string> sa; for(int i = 0; n > i; i++){ string a,b;cin>>a>>b; s1.insert(a); s2.push_back(b); sa.insert(a); sa.insert(b); } for(int i = 0; s2.size() > i; i++){ if(s1.find(s2[i]) == s1.end()){ cout << s2[i] << endl; } } }