結果

問題 No.3232 Not Tic Tac Toe
ユーザー daiota
提出日時 2025-08-15 22:37:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 206 ms / 2,000 ms
コード長 552 bytes
コンパイル時間 1,410 ms
コンパイル使用メモリ 163,180 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-08-15 22:37:50
合計ジャッジ時間 5,098 ms
ジャッジサーバーID
(参考情報)
judge6 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<ll,ll> P;
#define REP(i,n) for(ll i=0;i<ll(n);i++)










int main(void){
	cin.tie(nullptr);  ios_base::sync_with_stdio(false);
	ll i,j;





	ll H,W;
	cin >> H >> W;

	vector<string> v;

	for(i=1;i<=H;i++){
		if(i%2==1){
			for(j=1;j<=W;j++){
				if(j%4==1 || j%4==2) cout << "O";
				else cout << "X";
			}
			cout << endl;
		}else{
			for(j=1;j<=W;j++){
				if(j%4==1 || j%4==2) cout << "X";
				else cout << "O";
			}
			cout << endl;
		}
	}






	return 0;

}
0