提出 #23118777


ソースコード 拡げる

import sys

input = sys.stdin.readline


def main():
    n = int(input())
    se = set()
    for i in range(n):
        s = input().strip()
        if s not in se:
            print(i + 1)
            se.add(s)


if __name__ == "__main__":
    main()

提出情報

提出日時
問題 027 - Sign Up Requests (★2)
ユーザ riantkb
言語 Python (3.8.2)
得点 2
コード長 251 Byte
結果 AC
実行時間 96 ms
メモリ 20016 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 2 / 2
結果
AC × 3
AC × 26
セット名 テストケース
Sample sample_01.txt, sample_02.txt, sample_03.txt
All all_different_01.txt, all_different_02.txt, all_different_03.txt, all_different_04.txt, all_same_01.txt, all_same_02.txt, all_same_03.txt, all_same_04.txt, all_same_05.txt, max_01.txt, max_02.txt, max_03.txt, min_01.txt, min_02.txt, min_03.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, sample_01.txt, sample_02.txt, sample_03.txt
ケース名 結果 実行時間 メモリ
all_different_01.txt AC 95 ms 20016 KiB
all_different_02.txt AC 95 ms 19932 KiB
all_different_03.txt AC 96 ms 19884 KiB
all_different_04.txt AC 92 ms 19856 KiB
all_same_01.txt AC 44 ms 8988 KiB
all_same_02.txt AC 41 ms 8832 KiB
all_same_03.txt AC 42 ms 8816 KiB
all_same_04.txt AC 41 ms 9036 KiB
all_same_05.txt AC 45 ms 9016 KiB
max_01.txt AC 51 ms 9776 KiB
max_02.txt AC 55 ms 9840 KiB
max_03.txt AC 53 ms 10044 KiB
min_01.txt AC 19 ms 9024 KiB
min_02.txt AC 23 ms 8848 KiB
min_03.txt AC 19 ms 8812 KiB
random_01.txt AC 56 ms 10240 KiB
random_02.txt AC 48 ms 9332 KiB
random_03.txt AC 45 ms 9124 KiB
random_04.txt AC 46 ms 8836 KiB
random_05.txt AC 44 ms 8916 KiB
random_06.txt AC 45 ms 8824 KiB
random_07.txt AC 42 ms 8904 KiB
random_08.txt AC 45 ms 8940 KiB
sample_01.txt AC 19 ms 8820 KiB
sample_02.txt AC 18 ms 8988 KiB
sample_03.txt AC 20 ms 8984 KiB