結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
![]() |
提出日時 | 2025-08-15 21:37:26 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 105 ms / 2,000 ms |
コード長 | 651 bytes |
コンパイル時間 | 2,960 ms |
コンパイル使用メモリ | 275,952 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2025-08-15 21:37:32 |
合計ジャッジ時間 | 6,059 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for (ll i = 0; i < (ll)(n); i++) #define ll long long const long long mod=998244353; const long long hmod=46216567629137; int main(){ cin.tie(0)->sync_with_stdio(0); cout.tie(0); int H,W; cin>>H>>W; char ans[H+1][W+1]; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ if(j%4<=1){ if(i%2==1) ans[i][j]='O'; else ans[i][j]='X'; } else{ if(i%2==0) ans[i][j]='O'; else ans[i][j]='X'; } cout<<ans[i][j]; } cout<<endl; } }