結果

問題 No.2871 Universal Serial Bus
コンテスト
ユーザー ikoma
提出日時 2024-09-06 22:39:12
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 335 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 566 ms
コンパイル使用メモリ 85,120 KB
実行使用メモリ 52,352 KB
最終ジャッジ日時 2026-04-04 00:38:51
合計ジャッジ時間 1,594 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

H,W=map(int,input().split())
S=[input().strip() for _ in range(H)]
T=[input().strip() for _ in range(H)]
S = [s.replace("#","0").replace(".","#").replace("0",".") for s in S]
ans = [3.531740190461733, 3.128936827211877]
if S==T:
    print(ans[0])
    exit()
S = [s[::-1] for s in S[::-1]]
if S==T:
    print(ans[1])
else:
    print(-1)
0