結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
![]() |
提出日時 | 2025-08-15 21:30:23 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 96 ms / 2,000 ms |
コード長 | 481 bytes |
コンパイル時間 | 5,339 ms |
コンパイル使用メモリ | 333,480 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-15 21:30:36 |
合計ジャッジ時間 | 8,554 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> #define rep(i, a, b) for (ll i = (ll)(a); i < (ll)(b); i++) using namespace atcoder; using namespace std; typedef long long ll; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(12); int h, w; cin >> h >> w; rep(i, 0, h) { rep(j, 0, w) { int o = (i / 2 % 2) ^ (j % 2); cout << (o ? 'O' : 'X'); } cout << '\n'; } }