結果

問題 No.3232 Not Tic Tac Toe
ユーザー The Forsaking
提出日時 2025-08-16 12:29:31
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 408 bytes
コンパイル時間 1,743 ms
コンパイル使用メモリ 192,936 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-16 12:29:36
合計ジャッジ時間 5,088 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef pair<int, int> pii;
typedef long long ll;
const int N = 2000086, MOD =  998244353, INF = 0x3f3f3f3f;
ll res;
int n, m, cnt, w[N];




int main() {
    cin >> n >> m;
    for (int i = 1; i < n + 1; i++) {
        for (int j = 1; j < m + 1; j++) {
            putchar((i >> 1 & 1) ^ (j & 1) ? 'X' : 'O');
        }
        puts("");
    }
    return 0;
}
0