結果
問題 | No.2871 Universal Serial Bus |
ユーザー |
![]() |
提出日時 | 2024-09-06 22:42:28 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 321 bytes |
コンパイル時間 | 666 ms |
コンパイル使用メモリ | 82,444 KB |
実行使用メモリ | 54,232 KB |
最終ジャッジ日時 | 2024-09-06 22:42:56 |
合計ジャッジ時間 | 1,951 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 8 WA * 10 |
ソースコード
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.5, 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)