結果
| 問題 |
No.1130 Grid Numbers
|
| ユーザー |
match1997
|
| 提出日時 | 2020-08-04 10:54:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 295 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-14 09:11:35 |
| 合計ジャッジ時間 | 1,429 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
H,W = map(int,input().split())
num_list = []
for i in range(H):
num_list += list(map(int,input().split()))
num_list.sort()
NEW_list=[]
for i in range(H):
new_list=[]
j = 0
while j < W:
s = num_list[0]
new_list.append(str(s))
num_list.remove(s)
j += 1
NEW_list.append(new_list)
for i in NEW_list:
print(' '.join(i))
match1997