結果

問題 No.2663 Zero-Sum Submatrices
ユーザー Maffy-0
提出日時 2024-03-10 14:05:23
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 2,002 ms
コンパイル使用メモリ 192,160 KB
最終ジャッジ日時 2025-02-20 03:40:01
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0