結果

問題 No.2684 折々の色
ユーザー とりゐとりゐ
提出日時 2024-03-20 21:48:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 655 bytes
コンパイル時間 206 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 156,728 KB
最終ジャッジ日時 2024-03-20 21:49:06
合計ジャッジ時間 21,289 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
55,468 KB
testcase_01 AC 39 ms
55,468 KB
testcase_02 AC 45 ms
55,468 KB
testcase_03 AC 41 ms
55,468 KB
testcase_04 AC 43 ms
55,468 KB
testcase_05 AC 40 ms
55,468 KB
testcase_06 AC 43 ms
55,468 KB
testcase_07 AC 41 ms
55,468 KB
testcase_08 AC 47 ms
55,468 KB
testcase_09 AC 41 ms
55,468 KB
testcase_10 AC 43 ms
55,468 KB
testcase_11 AC 342 ms
113,196 KB
testcase_12 AC 253 ms
99,048 KB
testcase_13 AC 396 ms
119,040 KB
testcase_14 AC 229 ms
96,424 KB
testcase_15 AC 270 ms
101,548 KB
testcase_16 AC 143 ms
81,388 KB
testcase_17 AC 241 ms
97,116 KB
testcase_18 AC 360 ms
115,868 KB
testcase_19 AC 383 ms
120,896 KB
testcase_20 AC 292 ms
107,060 KB
testcase_21 AC 166 ms
83,960 KB
testcase_22 AC 369 ms
116,496 KB
testcase_23 AC 326 ms
107,700 KB
testcase_24 AC 191 ms
88,684 KB
testcase_25 AC 247 ms
96,572 KB
testcase_26 AC 366 ms
118,072 KB
testcase_27 AC 285 ms
100,224 KB
testcase_28 AC 292 ms
107,448 KB
testcase_29 AC 574 ms
155,064 KB
testcase_30 AC 568 ms
150,328 KB
testcase_31 AC 564 ms
150,968 KB
testcase_32 AC 604 ms
155,700 KB
testcase_33 AC 593 ms
155,828 KB
testcase_34 AC 587 ms
150,072 KB
testcase_35 AC 568 ms
150,720 KB
testcase_36 AC 576 ms
150,328 KB
testcase_37 AC 570 ms
150,712 KB
testcase_38 AC 645 ms
156,196 KB
testcase_39 AC 610 ms
156,724 KB
testcase_40 AC 632 ms
156,728 KB
testcase_41 AC 609 ms
156,724 KB
testcase_42 AC 625 ms
156,596 KB
testcase_43 AC 620 ms
156,596 KB
testcase_44 AC 641 ms
156,280 KB
testcase_45 AC 601 ms
156,608 KB
testcase_46 AC 616 ms
156,724 KB
testcase_47 AC 42 ms
55,468 KB
testcase_48 AC 42 ms
55,468 KB
testcase_49 AC 42 ms
55,468 KB
testcase_50 AC 42 ms
55,468 KB
testcase_51 AC 41 ms
55,468 KB
testcase_52 AC 42 ms
55,468 KB
testcase_53 AC 41 ms
55,468 KB
testcase_54 AC 42 ms
55,468 KB
testcase_55 AC 42 ms
55,468 KB
testcase_56 WA -
testcase_57 AC 40 ms
55,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import defaultdict

n,m=map(int,input().split())
d=defaultdict(list)
X=list(map(int,input().split()))
C=[]
for i in range(n):
  CiT=list(map(int,input().split()))
  Ci=CiT[:-1]
  T=CiT[-1]
  if T==100:
    if Ci==X:
      print("Yes")
      exit()
  else:
    res=[]
    for j in range(m):
      if (10000*X[j]-100*T*Ci[j])%(100-T)==0:
        res.append((10000*X[j]-100*T*Ci[j])//(100-T))
    if len(res)==m:
      d[tuple(res)].append(j)
  
  D=[]
  for j in range(m):
    D.append(T*Ci[j])
  C.append(tuple(D))
for i in range(n):
  if C[i] in d:
    for idx in d[C[i]]:
      if idx!=i:
        print("Yes")
        exit()

print("No")
0