結果
問題 |
No.938 賢人を探せ
|
ユーザー |
![]() |
提出日時 | 2019-12-01 20:44:26 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 273 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 26,824 KB |
最終ジャッジ日時 | 2024-11-21 17:25:06 |
合計ジャッジ時間 | 49,744 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 TLE * 15 |
ソースコード
n=int(input()) fir=[] sec=[] for i in range(n): q,r=map(str,input().split()) fir.append(q) sec.append(r) ans=[] for i in range(n): if sec[i] not in fir: if sec[i] not in ans: ans.append(sec[i]) for i in range(len(ans)): print(ans[i])