結果

問題 No.714 回転寿司屋のシミュレート
ユーザー convexineqconvexineq
提出日時 2021-03-14 16:37:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 403 bytes
コンパイル時間 300 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 76,800 KB
最終ジャッジ日時 2024-04-23 23:57:08
合計ジャッジ時間 3,971 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
51,968 KB
testcase_01 AC 39 ms
51,840 KB
testcase_02 AC 44 ms
57,856 KB
testcase_03 AC 59 ms
66,048 KB
testcase_04 AC 55 ms
62,464 KB
testcase_05 AC 77 ms
71,680 KB
testcase_06 AC 70 ms
69,504 KB
testcase_07 AC 99 ms
76,772 KB
testcase_08 AC 116 ms
76,672 KB
testcase_09 AC 101 ms
76,800 KB
testcase_10 AC 99 ms
76,416 KB
testcase_11 AC 68 ms
68,352 KB
testcase_12 AC 94 ms
76,240 KB
testcase_13 AC 81 ms
73,600 KB
testcase_14 AC 78 ms
72,064 KB
testcase_15 AC 80 ms
73,344 KB
testcase_16 AC 75 ms
71,296 KB
testcase_17 AC 92 ms
76,332 KB
testcase_18 AC 79 ms
72,832 KB
testcase_19 AC 78 ms
71,680 KB
testcase_20 AC 79 ms
72,960 KB
testcase_21 AC 69 ms
68,480 KB
testcase_22 AC 67 ms
68,352 KB
testcase_23 AC 64 ms
67,584 KB
testcase_24 AC 79 ms
73,344 KB
testcase_25 AC 74 ms
71,808 KB
testcase_26 AC 69 ms
68,736 KB
testcase_27 AC 60 ms
64,512 KB
testcase_28 AC 68 ms
67,584 KB
testcase_29 AC 70 ms
68,736 KB
testcase_30 AC 39 ms
52,352 KB
testcase_31 AC 40 ms
51,840 KB
testcase_32 AC 41 ms
52,096 KB
testcase_33 AC 40 ms
51,968 KB
testcase_34 AC 39 ms
52,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

lst = [[] for _ in range(21)]
n = int(input())
for _ in range(n):
    i,*a, = input().split()
    if i=="0":
        lst[int(a[0])] = a[2:]
    elif i=="1":
        b = a[0]
        for j in range(1,21):
            if b in lst[j]:
                lst[j].pop(lst[j].index(b))
                print(j)
                break
        else:
            print(-1)
    elif i=="2":
        lst[int(a[0])] = []
0