提出 #29673045
ソースコード 拡げる
n,m = map(int,input().split())
a = list(map(int,input().split()))
b = list(map(int,input().split()))
num = 0
for i in range(m):
length = b[i]
if length in a:
a.remove(length)
else:
print("No")
num = 1
break
if num == 0:
print("Yes")
提出情報
| 提出日時 | |
|---|---|
| 問題 | B - Pasta |
| ユーザ | Sirocco110 |
| 言語 | PyPy3 (7.3.0) |
| 得点 | 200 |
| コード長 | 277 Byte |
| 結果 | AC |
| 実行時間 | 66 ms |
| メモリ | 64188 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 200 / 200 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | example_00.txt, example_01.txt, example_02.txt |
| All | example_00.txt, example_01.txt, example_02.txt, hand_00.txt, hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, random_00.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, random_09.txt, random_b_00.txt, random_b_01.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| example_00.txt | AC | 66 ms | 61464 KiB |
| example_01.txt | AC | 52 ms | 61608 KiB |
| example_02.txt | AC | 51 ms | 61328 KiB |
| hand_00.txt | AC | 59 ms | 63992 KiB |
| hand_01.txt | AC | 51 ms | 64132 KiB |
| hand_02.txt | AC | 54 ms | 63872 KiB |
| hand_03.txt | AC | 52 ms | 61516 KiB |
| hand_04.txt | AC | 51 ms | 61512 KiB |
| random_00.txt | AC | 51 ms | 63812 KiB |
| random_01.txt | AC | 53 ms | 63880 KiB |
| random_02.txt | AC | 51 ms | 63880 KiB |
| random_03.txt | AC | 54 ms | 64100 KiB |
| random_04.txt | AC | 54 ms | 64188 KiB |
| random_05.txt | AC | 57 ms | 63748 KiB |
| random_06.txt | AC | 52 ms | 63900 KiB |
| random_07.txt | AC | 52 ms | 63912 KiB |
| random_08.txt | AC | 53 ms | 63852 KiB |
| random_09.txt | AC | 55 ms | 63904 KiB |
| random_b_00.txt | AC | 53 ms | 63892 KiB |
| random_b_01.txt | AC | 51 ms | 63648 KiB |