結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
|
提出日時 | 2025-08-15 22:54:59 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 89 ms / 2,000 ms |
コード長 | 334 bytes |
コンパイル時間 | 2,905 ms |
コンパイル使用メモリ | 275,600 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-08-15 22:55:13 |
合計ジャッジ時間 | 5,904 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t H, W, i, j; std::cin >> H >> W; for (i = 0; i != H; ++i) { for (j = 0; j != W; ++j) { if ((i & 1) ^ ((j >> 1) & 1)) std::cout << 'O'; else std::cout << 'X'; } std::cout << '\n'; } return 0; }