結果
| 問題 | No.1130 Grid Numbers |
| ユーザー |
match1997
|
| 提出日時 | 2020-08-04 10:54:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 382 bytes |
| 記録 | |
| コンパイル時間 | 326 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 15,356 KB |
| 最終ジャッジ日時 | 2026-04-04 11:44:45 |
| 合計ジャッジ時間 | 2,053 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge5_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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