結果
| 問題 |
No.2178 Payable Magic Items
|
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-01-06 23:33:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 333 bytes |
| コンパイル時間 | 493 ms |
| コンパイル使用メモリ | 82,200 KB |
| 実行使用メモリ | 83,460 KB |
| 最終ジャッジ日時 | 2024-12-14 18:07:44 |
| 合計ジャッジ時間 | 10,760 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 22 TLE * 1 |
ソースコード
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))
ニックネーム