結果

問題 No.3232 Not Tic Tac Toe
ユーザー jiangxinyang
提出日時 2025-08-29 20:27:32
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 282 ms / 2,000 ms
コード長 448 bytes
コンパイル時間 2,218 ms
コンパイル使用メモリ 190,628 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2025-08-29 20:27:39
合計ジャッジ時間 6,761 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
const int N = 200005;
const int INF = 0x3f3f3f3f;

int main() {
    int n, m;
    cin >> n >> m;
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < m; j++) {
            if ((i + j / 2) % 2 == 1) {
                cout << "O";
            } else {
                cout << "X";
            }
        }
        cout << "\n";
    }
    return 0;
}
0