結果
| 問題 |
No.1130 Grid Numbers
|
| ユーザー |
|
| 提出日時 | 2020-08-17 09:16:58 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 351 bytes |
| コンパイル時間 | 1,664 ms |
| コンパイル使用メモリ | 171,772 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-11 10:50:57 |
| 合計ジャッジ時間 | 2,258 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int H,W;
cin>>H>>W;
vector<int> A(H*W);
for(int &i:A)cin>>i;
sort(A.begin(),A.end());
for(int i=0;i<H;i++){
for(int j=0;j<W;j++){
cout<<A[i*W+j];
if(j==W-1)cout<<endl;
else cout<<' ';
}
}
}