結果

問題 No.2178 Payable Magic Items
ユーザー hiroshibtchiroshibtc
提出日時 2023-01-20 06:21:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 476 bytes
コンパイル時間 1,116 ms
コンパイル使用メモリ 10,800 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-09-05 01:22:26
合計ジャッジ時間 6,391 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 15 ms
7,928 KB
testcase_04 AC 16 ms
7,832 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 OLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

# 入力Nを受け取る
N, K = map(int, input().split())
# 入力Sを受け取る
S = [list(map(int, input())) for _ in range(N)]

#N、K、Sの値を使って売却する個数を求める
ans = 0
for i in range(N):
    for j in range(N):
        if i == j:
            continue
        for k in range(K):
            print(i,j,k)
            if S[i][k] > S[j][k]:
                break
        else:
            print(ans)
            ans += 1
            break

print(ans)
0