結果

問題 No.2684 折々の色
ユーザー titiatitia
提出日時 2024-03-24 01:18:37
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 550 bytes
コンパイル時間 435 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 189,408 KB
最終ジャッジ日時 2024-03-24 01:19:00
合計ジャッジ時間 21,420 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,460 KB
testcase_01 AC 34 ms
53,460 KB
testcase_02 AC 35 ms
53,460 KB
testcase_03 AC 35 ms
53,460 KB
testcase_04 AC 37 ms
53,460 KB
testcase_05 AC 34 ms
53,460 KB
testcase_06 AC 40 ms
53,460 KB
testcase_07 AC 35 ms
53,460 KB
testcase_08 AC 36 ms
53,460 KB
testcase_09 AC 36 ms
53,460 KB
testcase_10 AC 35 ms
53,460 KB
testcase_11 AC 333 ms
124,820 KB
testcase_12 AC 249 ms
110,120 KB
testcase_13 AC 312 ms
132,200 KB
testcase_14 AC 181 ms
103,624 KB
testcase_15 AC 236 ms
113,808 KB
testcase_16 AC 104 ms
86,332 KB
testcase_17 AC 211 ms
106,448 KB
testcase_18 AC 294 ms
129,208 KB
testcase_19 AC 339 ms
133,440 KB
testcase_20 AC 243 ms
118,448 KB
testcase_21 AC 125 ms
91,968 KB
testcase_22 AC 358 ms
129,668 KB
testcase_23 AC 290 ms
123,396 KB
testcase_24 AC 153 ms
95,732 KB
testcase_25 AC 205 ms
107,520 KB
testcase_26 AC 393 ms
136,096 KB
testcase_27 AC 237 ms
110,392 KB
testcase_28 AC 293 ms
122,224 KB
testcase_29 AC 565 ms
185,740 KB
testcase_30 AC 522 ms
183,788 KB
testcase_31 AC 480 ms
184,144 KB
testcase_32 AC 629 ms
186,356 KB
testcase_33 AC 558 ms
185,916 KB
testcase_34 AC 562 ms
183,780 KB
testcase_35 AC 534 ms
184,032 KB
testcase_36 AC 506 ms
183,756 KB
testcase_37 AC 501 ms
184,148 KB
testcase_38 AC 639 ms
189,396 KB
testcase_39 AC 635 ms
189,404 KB
testcase_40 AC 645 ms
189,272 KB
testcase_41 AC 654 ms
189,400 KB
testcase_42 AC 666 ms
189,284 KB
testcase_43 AC 640 ms
189,268 KB
testcase_44 AC 664 ms
189,408 KB
testcase_45 AC 632 ms
189,280 KB
testcase_46 AC 676 ms
189,272 KB
testcase_47 AC 37 ms
53,460 KB
testcase_48 AC 38 ms
53,460 KB
testcase_49 AC 39 ms
53,460 KB
testcase_50 AC 38 ms
53,460 KB
testcase_51 AC 36 ms
53,460 KB
testcase_52 AC 34 ms
53,460 KB
testcase_53 AC 34 ms
53,460 KB
testcase_54 AC 36 ms
53,460 KB
testcase_55 AC 35 ms
53,460 KB
testcase_56 WA -
testcase_57 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

N,M=map(int,input().split())
X=list(map(int,input().split()))

C=[list(map(int,input().split())) for i in range(N)]

K=set()

for i in range(N):
    S=[]
    for j in range(M):
        S.append(C[i][j]*C[i][-1])

    K.add(tuple(S))


for i in range(N):
    S=[]
    for j in range(M):
        if C[i][-1]!=100 and (10000*X[j]-100*C[i][-1]*C[i][j])%(100-C[i][-1])==0:
            S.append((10000*X[j]-100*C[i][-1]*C[i][j])//(100-C[i][-1]))

    if tuple(S) in K:
        print("Yes")
        exit()

print("No")
0