結果
問題 |
No.938 賢人を探せ
|
ユーザー |
|
提出日時 | 2019-12-01 09:11:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 53 ms / 2,000 ms |
コード長 | 351 bytes |
コンパイル時間 | 895 ms |
コンパイル使用メモリ | 78,312 KB |
実行使用メモリ | 6,912 KB |
最終ジャッジ日時 | 2024-12-14 11:42:59 |
合計ジャッジ時間 | 2,012 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 21 |
ソースコード
#include<iostream> #include<vector> #include<set> using namespace std; int main(){ int n; cin >> n; set<string> ng; vector<string> v(n); for(int i = 0; i < n; i++){ string x; cin >> x >> v[i]; ng.insert(x); } for(string s : v) if(ng.count(s)==0) cout << s << endl, ng.insert(s); return 0; }