結果
| 問題 | No.3232 Not Tic Tac Toe |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-08-15 22:13:54 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 1,055 ms / 2,000 ms |
| + 240µs | |
| コード長 | 526 bytes |
| 記録 | |
| コンパイル時間 | 735 ms |
| コンパイル使用メモリ | 21,540 KB |
| 実行使用メモリ | 15,892 KB |
| 最終ジャッジ日時 | 2026-07-14 03:12:18 |
| 合計ジャッジ時間 | 10,146 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 27 |
ソースコード
import sys
input = sys.stdin.readline
H,W=map(int,input().split())
for i in range(H):
A=[]
for j in range(0,W+2,2):
if i%2==0:
if j%4==0:
A.append("O")
A.append("O")
else:
A.append("X")
A.append("X")
else:
if j%4!=0:
A.append("O")
A.append("O")
else:
A.append("X")
A.append("X")
A=A[:W]
print("".join(map(str,A)))
titia