結果

問題 No.938 賢人を探せ
ユーザー taimo8589869056taimo8589869056
提出日時 2019-12-15 22:35:55
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 302 bytes
コンパイル時間 266 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 80,720 KB
最終ジャッジ日時 2023-08-21 03:41:26
合計ジャッジ時間 16,782 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 AC 73 ms
70,956 KB
testcase_02 AC 73 ms
71,512 KB
testcase_03 AC 73 ms
70,984 KB
testcase_04 AC 72 ms
71,284 KB
testcase_05 AC 74 ms
71,188 KB
testcase_06 AC 74 ms
71,048 KB
testcase_07 AC 75 ms
71,112 KB
testcase_08 AC 459 ms
79,224 KB
testcase_09 AC 497 ms
79,396 KB
testcase_10 AC 73 ms
71,336 KB
testcase_11 AC 1,022 ms
79,772 KB
testcase_12 AC 618 ms
78,932 KB
testcase_13 AC 614 ms
78,864 KB
testcase_14 AC 619 ms
79,044 KB
testcase_15 AC 643 ms
79,024 KB
testcase_16 AC 606 ms
79,028 KB
testcase_17 AC 636 ms
79,052 KB
testcase_18 AC 634 ms
79,088 KB
testcase_19 AC 608 ms
78,992 KB
testcase_20 AC 608 ms
78,892 KB
testcase_21 AC 622 ms
78,864 KB
testcase_22 TLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
name2=[]
for i in range(N):
    name2.extend(input().split())
name1=[]
for i in range(N):
    name1.append(name2[i])
    del name2[i]
ans=[]
for j in name2:
    if j in name1:
        continue
    elif j in ans:
        continue
    else:
        ans.append(j)
for k in ans:
    print(k)
0