結果
問題 |
No.2178 Payable Magic Items
|
ユーザー |
![]() |
提出日時 | 2023-01-06 23:36:34 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 337 bytes |
コンパイル時間 | 328 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 26,792 KB |
最終ジャッジ日時 | 2024-12-14 18:06:23 |
合計ジャッジ時間 | 17,055 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 TLE * 1 |
ソースコード
n,k = map(int,input().split()) a = sorted(input() for _ in range(n)) x = [] for s in a[::-1]: 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))