結果

問題 No.3232 Not Tic Tac Toe
ユーザー forest3
提出日時 2025-09-26 20:56:13
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 26 ms / 2,000 ms
コード長 364 bytes
コンパイル時間 1,600 ms
コンパイル使用メモリ 166,640 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2025-09-26 20:56:18
合計ジャッジ時間 5,092 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#define rep(i, a, b) for (int i = a; i < b; i++)
using ll = long long;

int main() {
	int h, w;
	cin >> h >> w;
	vector<string> t{
		"OOXX",
		"XXOO",
	};
	vector<string> s(h, string(w, ' '));
	rep(i, 0, h) rep(j, 0, w) {
		int y = i % 2;
		int x = j % 4;
		s[i][j] = t[y][x];
	}
	rep(i, 0, h) cout << s[i] << endl;
}
0