結果

問題 No.1130 Grid Numbers
ユーザー otsunekootsuneko
提出日時 2021-05-06 13:50:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 279 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 87,272 KB
実行使用メモリ 71,660 KB
最終ジャッジ日時 2023-10-12 06:27:12
合計ジャッジ時間 2,301 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 76 ms
71,268 KB
testcase_01 AC 76 ms
71,592 KB
testcase_02 AC 75 ms
71,444 KB
testcase_03 WA -
testcase_04 AC 74 ms
71,296 KB
testcase_05 AC 77 ms
71,160 KB
testcase_06 AC 74 ms
71,372 KB
testcase_07 WA -
testcase_08 AC 75 ms
71,388 KB
testcase_09 AC 76 ms
71,160 KB
testcase_10 AC 75 ms
71,348 KB
testcase_11 AC 76 ms
71,568 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W = map(int,input().split())

l = []
for _ in range(H):
    tmp = list(map(int,input().split()))
    for t in tmp:
        l.append(t)
l.sort()
ans = []
for i in range(H*W):
    ans.append(l[i])
    if i > 0 and (i+1)%W == 0:
        print(*ans)
        ans = []
0