結果
| 問題 |
No.2663 Zero-Sum Submatrices
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-03-14 20:10:42 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 314 bytes |
| コンパイル時間 | 1,807 ms |
| コンパイル使用メモリ | 193,044 KB |
| 最終ジャッジ日時 | 2025-02-20 04:24:34 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 31 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int h, w;
cin >> h >> w;
h = 1 << h, w = 1 << w;
for(int y = 0; y < h; y++){
for(int x = 0; x < w; x++){
cout << y * w + x << (x + 1 == w ? '\n' : ' ');
}
}
}