結果

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

ソースコード

diff #

#include <iostream>

using namespace std;
typedef long long ll;

int main() {
    int H, W;
    cin >> H >> W;

    for(int y=0; y<H; y++){
        for(int x=0; x<W; x++){
            if((x/2)%2 == y%2)
                cout << "O";
            else
                cout << "X";
        }
        cout << endl;
    }
    
    return 0;
}
0