結果

問題 No.3232 Not Tic Tac Toe
ユーザー timi
提出日時 2025-08-15 21:42:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 184 ms / 2,000 ms
コード長 250 bytes
コンパイル時間 353 ms
コンパイル使用メモリ 82,208 KB
実行使用メモリ 76,620 KB
最終ジャッジ日時 2025-08-15 21:43:19
合計ジャッジ時間 5,234 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W=map(int, input().split())

A=[]
B=[]
for i in range(W):
  if i%2==0:
    A.append('O')
    B.append('X')
  else:
    A.append('X')
    B.append('O')
    
ans=[]
for i in range(H):
  if i%4<2:
    print(''.join(A))
  else:
    print(''.join(B))
  
0