結果
| 問題 | 
                            No.2663 Zero-Sum Submatrices
                             | 
                    
| コンテスト | |
| ユーザー | 
                             inkyaman
                         | 
                    
| 提出日時 | 2024-03-22 00:57:35 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 4 ms / 2,000 ms | 
| コード長 | 593 bytes | 
| コンパイル時間 | 1,037 ms | 
| コンパイル使用メモリ | 111,588 KB | 
| 最終ジャッジ日時 | 2025-02-20 10:50:05 | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 31 | 
ソースコード
#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <math.h>
#include <cmath>
#include <stack>
#include <map>
#include <set>
#include <numeric>
#include <iomanip>
#include <climits>
#include <functional>
#include <cassert>
#include <tuple>
using namespace std;
using ll = long long;
int n,m;
int main() {
    cin >> n >> m;
    int cnt = 0;
    for(int i = 0; i < (1<<n); ++i) {
        for(int j = 0 ; j < (1<<m); ++j) {
            cout << cnt << " ";
            cnt++;
        }
        cout << endl;
    }
}
            
            
            
        
            
inkyaman