結果
| 問題 |
No.3232 Not Tic Tac Toe
|
| コンテスト | |
| ユーザー |
ゼリトキ
|
| 提出日時 | 2025-08-15 21:30:35 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 549 bytes |
| コンパイル時間 | 3,917 ms |
| コンパイル使用メモリ | 274,888 KB |
| 実行使用メモリ | 12,160 KB |
| 最終ジャッジ日時 | 2025-08-15 21:30:49 |
| 合計ジャッジ時間 | 9,057 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 6 WA * 21 |
ソースコード
#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++){
int n=((i%3)*3+(j%3+1));
if(n==1||n==5||n==6||n==8) ans[i][j]='X';
else ans[i][j]='O';
cout<<ans[i][j];
}
cout<<endl;
}
}
ゼリトキ