結果
| 問題 |
No.3232 Not Tic Tac Toe
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-16 11:54:54 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 413 bytes |
| コンパイル時間 | 3,029 ms |
| コンパイル使用メモリ | 279,056 KB |
| 実行使用メモリ | 14,592 KB |
| 最終ジャッジ日時 | 2025-08-16 11:55:00 |
| 合計ジャッジ時間 | 6,334 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
#include <bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int h,w;cin>>h>>w;
vector<string>ans(h);
for(int i=0;i<h;i++){
char c=((i/2)%2==0?'O':'X');
for(int j=0;j<w;j++){
ans[i]+=c;
if(c=='O')c='X';
else c='O';
}
}
for(string row:ans)cout<<row<<endl;
}