結果
問題 |
No.2663 Zero-Sum Submatrices
|
ユーザー |
![]() |
提出日時 | 2024-04-10 00:59:07 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 501 bytes |
コンパイル時間 | 3,167 ms |
コンパイル使用メモリ | 248,568 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-02 02:07:28 |
合計ジャッジ時間 | 4,853 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int n, m; cin >> n >> m; vector a(1 << n, vector<int>(1 << m)); rep(i, 1 << n) rep(j, 1 << m) a[i][j] = i * (1 << m) + j; rep(i, 1 << n) { rep(j, 1 << m) cout << a[i][j] << " "; cout << endl; } return 0; }