結果

問題 No.1130 Grid Numbers
ユーザー Yug_min_null
提出日時 2021-09-03 16:00:07
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 3,889 ms
コンパイル使用メモリ 230,060 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-15 01:31:30
合計ジャッジ時間 4,742 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;

int main() {
  int H, W; cin >> H >> W;
  vector<int> A(H*W);
  for(int i = 0; i < H*W; i++){
    cin >> A[i];
  }
  sort(A.begin(), A.end());
  for(int i = 0; i < H*W; i++){
    cout << A[i];
    if((i+1)%W == 0) cout << endl;
    else cout << " ";
  }
}
0