結果

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

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;
using ll = long long;

int main(){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    int N, M;
    cin >> N >> M;
    N = 1<<N;
    M = 1<<M;

    for (int i=0; i<N; i++){
        for (int j=0; j<M; j++){
            cout << i*M+j << " ";
        }
        cout << "\n";
    }

    return 0;
}
0