結果
問題 |
No.1130 Grid Numbers
|
ユーザー |
![]() |
提出日時 | 2022-07-11 06:53:16 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 280 bytes |
コンパイル時間 | 3,414 ms |
コンパイル使用メモリ | 250,476 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-11 23:26:46 |
合計ジャッジ時間 | 4,365 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long signed main(){ int H,W; cin>>H>>W; vector<int> S(H*W); for(int i=0;i<H*W;i++) cin>>S[i]; sort(S.begin(),S.end()); for(int i=0;i<H*W;i++){ cout<<S[i]<<' '; if(i%W == W-1) cout<<endl; } }