結果

問題 No.714 回転寿司屋のシミュレート
ユーザー rlangevinrlangevin
提出日時 2023-01-17 21:20:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 418 bytes
コンパイル時間 278 ms
コンパイル使用メモリ 86,856 KB
実行使用メモリ 78,832 KB
最終ジャッジ日時 2023-08-31 00:00:43
合計ジャッジ時間 5,882 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,380 KB
testcase_01 AC 73 ms
71,212 KB
testcase_02 AC 77 ms
75,824 KB
testcase_03 AC 92 ms
77,452 KB
testcase_04 AC 88 ms
76,376 KB
testcase_05 AC 109 ms
76,996 KB
testcase_06 AC 105 ms
77,032 KB
testcase_07 AC 130 ms
77,944 KB
testcase_08 AC 142 ms
77,860 KB
testcase_09 AC 131 ms
77,868 KB
testcase_10 AC 127 ms
77,956 KB
testcase_11 AC 100 ms
76,808 KB
testcase_12 AC 117 ms
77,788 KB
testcase_13 AC 115 ms
78,832 KB
testcase_14 AC 110 ms
77,608 KB
testcase_15 AC 113 ms
78,196 KB
testcase_16 AC 108 ms
76,792 KB
testcase_17 AC 125 ms
77,480 KB
testcase_18 AC 112 ms
77,508 KB
testcase_19 AC 107 ms
77,172 KB
testcase_20 AC 114 ms
77,268 KB
testcase_21 AC 103 ms
76,808 KB
testcase_22 AC 99 ms
77,076 KB
testcase_23 AC 97 ms
77,008 KB
testcase_24 AC 113 ms
77,868 KB
testcase_25 AC 108 ms
77,064 KB
testcase_26 AC 104 ms
77,096 KB
testcase_27 AC 94 ms
76,216 KB
testcase_28 AC 98 ms
76,748 KB
testcase_29 AC 104 ms
76,748 KB
testcase_30 AC 74 ms
71,628 KB
testcase_31 AC 74 ms
71,372 KB
testcase_32 AC 74 ms
71,440 KB
testcase_33 AC 72 ms
71,616 KB
testcase_34 AC 72 ms
71,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
D = [[] for i in range(20)]
for _ in range(N):
    U = list(input().split())
    if U[0] == "0":
        n, m = int(U[1]), U[2]
        D[n - 1] = U[3:]
    elif U[0] == "1":
        for i in range(20):
            if U[1] in D[i]:
                print(i + 1)
                D[i].pop(D[i].index(U[1]))
                break
        else:
            print(-1)
    else:
        D[int(U[1]) - 1] = []
0