結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
|
提出日時 | 2025-08-17 06:44:18 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 401 bytes |
コンパイル時間 | 2,740 ms |
コンパイル使用メモリ | 281,376 KB |
実行使用メモリ | 38,400 KB |
最終ジャッジ日時 | 2025-08-17 06:44:29 |
合計ジャッジ時間 | 10,086 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | AC * 1 WA * 26 |
ソースコード
#include <bits/stdc++.h> using namespace std;int main(){std::ios_base::sync_with_stdio(false);std::cin.tie(nullptr);std::fixed(std::cout).precision(16);int H,W;cin>>H>>W;vector<vector<int>>A(H,vector<int>(W));for(int j=0;j<W;j+=2){int s=(j%4==0 ? 1:0);for(int i=0;i<H;i++){A[i][j]=s;if(j+1<W)A[i][j+1]=s;s^=1;}}for(int i=0;i<H;i++)for(int j=0;j<W;j++)cout<<(A[i][j]? 'O':'X')<<" \n"[j==W-1];return 0;}