結果

問題 No.2112 All 2x2 are Equal
ユーザー ruthen71
提出日時 2022-10-28 22:13:35
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 874 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 192,576 KB
最終ジャッジ日時 2025-02-08 14:35:58
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 34
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

#ifdef _RUTHEN
#include <debug.hpp>
#else
#define show(...) true
#endif

using ll = long long;
#define rep(i, n) for (int i = 0; i < (n); i++)
template <class T> using V = vector<T>;

void solve() {
    cout << "No" << '\n';
    return;
    int H, W;
    cin >> H >> W;
    if (H == 2) {
        cout << "Yes" << '\n';
        rep(i, W) cout << i + 1 << " \n"[i == W - 1];
        rep(i, W) cout << 2 * W - i << " \n"[i == W - 1];
    } else if (W == 2) {
        cout << "Yes" << '\n';
        rep(i, H) cout << i + 1 << ' ' << 2 * H - i << '\n';
    } else if (H == 3 and W == 3) {
        cout << "Yes" << '\n';
        cout << "1 5 3\n9 8 7\n4 2 6\n";
    } else {
        cout << "No" << '\n';
    }
}

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int tt = 1;
    while (tt--) solve();
    return 0;
}
0