結果

問題 No.3232 Not Tic Tac Toe
ユーザー cologne
提出日時 2025-09-02 18:17:18
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 96 ms / 2,000 ms
コード長 358 bytes
コンパイル時間 3,630 ms
コンパイル使用メモリ 274,548 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-02 18:17:26
合計ジャッジ時間 6,921 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    int H, W;
    cin >> H >> W;
    for (int i = 0; i < H; ++i)
    {
        for (int j = 0; j < W; ++j)
            if (i % 2 == (j / 2) % 2)
                cout << 'O';
            else
                cout << 'X';
        cout << endl;
    }
}
0