結果
| 問題 |
No.938 賢人を探せ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-14 13:55:57 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 55 ms / 2,000 ms |
| コード長 | 868 bytes |
| コンパイル時間 | 1,058 ms |
| コンパイル使用メモリ | 101,840 KB |
| 実行使用メモリ | 18,948 KB |
| 最終ジャッジ日時 | 2024-12-14 11:52:39 |
| 合計ジャッジ時間 | 2,277 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 21 |
ソースコード
// _/ _/ _/_/_/ _/
//_/_/_/_/ _/_/ _/_/_/_/ _/_/ _/ _/_/
// _/ _/ _/ _/ _/ _/ _/_/_/ _/
//_/ _/ _/ _/ _/ _/ _/ _/ _/
// _/_/ _/_/ _/_/ _/_/ _/_/ _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const int inf=1e9;
const ll INF=1e18;
const double pi=3.1415926535897932384626433832;
int main() {
cin.tie(0),cout.tie(0);
ios::sync_with_stdio(false);
int n;
string s[200005]={},t[200005]={};
cin >> n;
map<string,int> m;
for(int i=0; i<n; i++) {
cin >> s[i] >> t[i];
m[s[i]]=1;
}
for(int i=0; i<n; i++) {
if(!m[t[i]]) {
cout << t[i] << endl;
m[t[i]]=1;
}
}
}