結果
問題 | No.2663 Zero-Sum Submatrices |
ユーザー | suisen |
提出日時 | 2022-12-19 00:24:18 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 656 ms |
コンパイル使用メモリ | 67,476 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-09-29 18:28:14 |
合計ジャッジ時間 | 2,037 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
#include <iostream>int main() {std::ios::sync_with_stdio(false);std::cin.tie(nullptr);int n, m;std::cin >> n >> m;int v = 0;for (int i = 0; i < 1 << n; ++i) {for (int j = 0; j < 1 << m; ++j) {std::cout << v++;if (j + 1 != 1 << m) std::cout << ' ';}std::cout << '\n';}return 0;}