結果

問題 No.2178 Payable Magic Items
コンテスト
ユーザー ニックネーム
提出日時 2023-01-06 23:33:39
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
TLE  
実行時間 -
コード長 333 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 233 ms
コンパイル使用メモリ 85,376 KB
実行使用メモリ 145,152 KB
最終ジャッジ日時 2026-05-25 11:00:51
合計ジャッジ時間 6,529 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 TLE * 1 -- * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

n,k = map(int,input().split())
x = []
for _ in range(n):
    s = tuple(map(int, input()))
    y = []
    for t in x:
        f = g = False
        for i in range(k):
            if s[i]>t[i]: f = True
            if s[i]<t[i]: g = True
        if g: y.append(t)
        if not f: break
    else: y.append(s); x = y[:]
print(n-len(x))
0