提出 #44512705
ソースコード 拡げる
n = int(input())
a = []
for i in range(n):
m = int(input())
a.append(list(map(int, input().split())))
x = int(input())
b = []
for i in range(n):
if x in a[i]:
b.append((len(a[i]), i))
b.sort()
c = []
if len(b) > 0:
for x, i in b:
if x == b[0][0]:
c.append(i)
print(len(c))
print(' '.join([str(i+1) for i in c]))
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Roulette |
| ユーザ | yefllower |
| 言語 | Python (CPython 3.11.4) |
| 得点 | 200 |
| コード長 | 345 Byte |
| 結果 | AC |
| 実行時間 | 10 ms |
| メモリ | 8628 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, 011.txt, 012.txt, 013.txt, 014.txt, 015.txt, 016.txt, 017.txt, 018.txt, 019.txt, example0.txt, example1.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 000.txt | AC | 10 ms | 8456 KiB |
| 001.txt | AC | 9 ms | 8592 KiB |
| 002.txt | AC | 9 ms | 8596 KiB |
| 003.txt | AC | 10 ms | 8524 KiB |
| 004.txt | AC | 10 ms | 8452 KiB |
| 005.txt | AC | 10 ms | 8540 KiB |
| 006.txt | AC | 10 ms | 8484 KiB |
| 007.txt | AC | 9 ms | 8496 KiB |
| 008.txt | AC | 10 ms | 8484 KiB |
| 009.txt | AC | 10 ms | 8484 KiB |
| 010.txt | AC | 9 ms | 8560 KiB |
| 011.txt | AC | 10 ms | 8584 KiB |
| 012.txt | AC | 10 ms | 8592 KiB |
| 013.txt | AC | 10 ms | 8480 KiB |
| 014.txt | AC | 10 ms | 8532 KiB |
| 015.txt | AC | 10 ms | 8436 KiB |
| 016.txt | AC | 10 ms | 8628 KiB |
| 017.txt | AC | 10 ms | 8520 KiB |
| 018.txt | AC | 10 ms | 8492 KiB |
| 019.txt | AC | 10 ms | 8480 KiB |
| example0.txt | AC | 9 ms | 8492 KiB |
| example1.txt | AC | 9 ms | 8504 KiB |