結果

問題 No.1130 Grid Numbers
ユーザー HAGI_TAROHAGI_TARO
提出日時 2021-08-25 08:47:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 119 ms
コンパイル使用メモリ 82,004 KB
実行使用メモリ 53,108 KB
最終ジャッジ日時 2024-04-27 19:34:35
合計ジャッジ時間 1,192 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
52,020 KB
testcase_01 AC 32 ms
52,344 KB
testcase_02 AC 31 ms
52,492 KB
testcase_03 AC 30 ms
52,960 KB
testcase_04 AC 30 ms
52,924 KB
testcase_05 AC 30 ms
52,596 KB
testcase_06 AC 29 ms
52,768 KB
testcase_07 AC 30 ms
53,108 KB
testcase_08 AC 34 ms
52,160 KB
testcase_09 AC 33 ms
52,244 KB
testcase_10 AC 30 ms
52,572 KB
testcase_11 AC 30 ms
52,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

h,w = map(int,input().split())
A = [list(map(int,input().split())) for _ in range(h)]
A = sum(A,[])
A.sort()
for i in range(h*w):
    if (i+1) % w == 0:
        print(A[i],end="\n")
    else:
        print(A[i],end=" ")
0