結果
問題 |
No.3232 Not Tic Tac Toe
|
ユーザー |
![]() |
提出日時 | 2025-08-15 21:29:27 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1,514 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 1,627 ms |
コンパイル使用メモリ | 86,596 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-08-15 21:29:50 |
合計ジャッジ時間 | 10,938 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 27 |
ソースコード
import std.stdio, std.algorithm, std.array, std.conv, std.typecons; void main() { auto tmp = readln.split.to!(uint[]); auto H = tmp[0], W = tmp[1]; foreach (h; 0 .. H) { if ((h%4).among!(0, 1)) { foreach (w; 0 .. W) write(w%2 == 0 ? "O" : "X"); } else { foreach (w; 0 .. W) write(w%2 != 0 ? "O" : "X"); } writeln; } }