結果
| 問題 | 
                            No.938 賢人を探せ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             buriburi
                         | 
                    
| 提出日時 | 2019-12-03 12:55:04 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 107 ms / 2,000 ms | 
| コード長 | 375 bytes | 
| コンパイル時間 | 93 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 13,608 KB | 
| 最終ジャッジ日時 | 2024-12-14 11:46:55 | 
| 合計ジャッジ時間 | 2,597 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 21 | 
ソースコード
students = {}
num = int(input())
for k in range(num):
    line = input().split()
    cheater = line[0]
    writer = line[1]
    if not cheater in students:
        students[cheater] = True
    else:
        students[cheater] = True
    if not writer in students:
        students[writer] = False
for key, value in  students.items():
    if not value:
        print(key)
            
            
            
        
            
buriburi