結果

問題 No.2684 折々の色
ユーザー 👑 rin204rin204
提出日時 2024-02-29 22:09:16
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 862 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 248,580 KB
最終ジャッジ日時 2024-03-07 02:23:07
合計ジャッジ時間 33,816 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,460 KB
testcase_01 AC 37 ms
53,460 KB
testcase_02 AC 40 ms
53,460 KB
testcase_03 AC 38 ms
53,460 KB
testcase_04 AC 43 ms
58,792 KB
testcase_05 AC 36 ms
53,460 KB
testcase_06 AC 39 ms
53,460 KB
testcase_07 AC 37 ms
53,460 KB
testcase_08 AC 41 ms
58,812 KB
testcase_09 AC 43 ms
53,460 KB
testcase_10 AC 39 ms
53,460 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 182 ms
92,280 KB
testcase_17 WA -
testcase_18 AC 629 ms
187,280 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 236 ms
98,888 KB
testcase_22 AC 704 ms
187,100 KB
testcase_23 AC 512 ms
145,348 KB
testcase_24 AC 309 ms
108,156 KB
testcase_25 AC 408 ms
124,548 KB
testcase_26 AC 653 ms
170,612 KB
testcase_27 AC 449 ms
129,464 KB
testcase_28 AC 506 ms
145,332 KB
testcase_29 AC 1,028 ms
247,320 KB
testcase_30 WA -
testcase_31 AC 914 ms
243,292 KB
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 AC 1,144 ms
248,452 KB
testcase_39 AC 1,146 ms
248,460 KB
testcase_40 AC 1,132 ms
248,452 KB
testcase_41 AC 1,137 ms
248,456 KB
testcase_42 AC 1,138 ms
248,452 KB
testcase_43 AC 1,162 ms
248,456 KB
testcase_44 AC 1,134 ms
248,452 KB
testcase_45 AC 1,149 ms
248,452 KB
testcase_46 AC 1,141 ms
248,580 KB
testcase_47 AC 38 ms
53,460 KB
testcase_48 WA -
testcase_49 AC 38 ms
53,460 KB
testcase_50 AC 38 ms
53,460 KB
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 AC 36 ms
53,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, m = map(int, input().split())
assert 2 <= n <= 200000
assert 1 <= m <= 10
X = list(map(int, input().split()))
assert all(0 <= x < (1 << 16) for x in X)
C = []
T = []
for _ in range(n):
    C_ = list(map(int, input().split()))
    t = C_.pop()
    assert len(C_) == m
    assert 0 < t <= 100
    assert all(0 <= c < (1 << 16) for c in C_)

    T.append(t)
    C.append(C_)

inds = {}
for i in range(n):
    if T[i] == 100:
        if C[i] == X:
            print("Yes")
            exit()
    D = tuple(T[i] * c / 100 for c in C[i])
    inds.setdefault(D, []).append(i)

for i in range(n):
    if T[i] == 100:
        continue
    D = [0] * m
    ok = True
    for j in range(m):
        D[j] = (X[j] - T[i] / 100 * C[i][j]) / (1 - T[i] / 100)

    if ok:
        tup = tuple(D)
        if tup in inds:
            print("Yes")
            exit()

print("No")
0