結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
|
提出日時 | 2024-06-30 08:54:45 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 285 ms / 2,000 ms |
コード長 | 358 bytes |
コンパイル時間 | 708 ms |
コンパイル使用メモリ | 80,520 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-07-22 22:29:30 |
合計ジャッジ時間 | 4,595 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
#include <iostream> using namespace std; typedef long long ll; int main() { int H, W; cin >> H >> W; for(int y=0; y<H; y++){ for(int x=0; x<W; x++){ if((x/2)%2 == y%2) cout << "O"; else cout << "X"; } if(y != H-1) cout << endl; } return 0; }