結果
| 問題 |
No.3232 Not Tic Tac Toe
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-17 06:48:37 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 340 ms / 2,000 ms |
| コード長 | 407 bytes |
| コンパイル時間 | 2,817 ms |
| コンパイル使用メモリ | 281,280 KB |
| 実行使用メモリ | 38,528 KB |
| 最終ジャッジ日時 | 2025-08-17 06:48:44 |
| 合計ジャッジ時間 | 7,022 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
#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')<<(j==W-1 ? "\n":"");return 0;}