結果
問題 | No.2663 Zero-Sum Submatrices |
ユーザー | Maffy-0 |
提出日時 | 2024-03-10 14:05:23 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 399 bytes |
コンパイル時間 | 2,072 ms |
コンパイル使用メモリ | 199,152 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-09-29 21:37:46 |
合計ジャッジ時間 | 3,416 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <bits/stdc++.h>using namespace std;void fast_io() {cin.tie(nullptr);ios_base::sync_with_stdio(false);}signed main(void) {fast_io();int N, M;cin >> N >> M;int cnt = 0;for (int i = 0; i < 1 << N; i++) {for (int j = 0; j < 1 << M; j++) {cout << cnt << " \n"[j + 1 == 1 << M];cnt++;}}return 0;}