結果
問題 | No.2663 Zero-Sum Submatrices |
ユーザー |
![]() |
提出日時 | 2024-03-08 21:09:20 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 38 ms / 2,000 ms |
コード長 | 509 bytes |
コンパイル時間 | 1,954 ms |
コンパイル使用メモリ | 192,092 KB |
最終ジャッジ日時 | 2025-02-20 01:56:01 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define pb emplace_back #define mp make_pair using ll = long long; using pii = pair<int,int>; constexpr int mod = 998244353; constexpr int inf = 0x3f3f3f3f; constexpr int N = 2e5 + 10; void _main(){ int n, m; cin >> n >> m; int p = 1 << m; for(int i=0; i<1<<n; ++i){ for(int j=0; j<p; ++j){ cout << ((i << m) | j) << " \n"[j == p - 1]; } } } int main(){ ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); _main(); return 0; }