結果
| 問題 | No.1130 Grid Numbers |
| ユーザー |
|
| 提出日時 | 2023-09-19 22:47:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 30 ms / 2,000 ms |
| コード長 | 262 bytes |
| コンパイル時間 | 251 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-05 21:45:54 |
| 合計ジャッジ時間 | 1,137 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
from collections import deque
h,w=map(int,input().split())
a=[]
for i in range(h):
for j in list(map(int,input().split())):
a.append(j)
a.sort()
a=deque(a)
for i in range(h):
b=[]
for j in range(w):
b.append(a.popleft())
print(*b)