結果
問題 | No.2871 Universal Serial Bus |
ユーザー | ikoma |
提出日時 | 2024-09-06 22:44:45 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 319 bytes |
コンパイル時間 | 191 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 54,304 KB |
最終ジャッジ日時 | 2024-09-06 22:44:47 |
合計ジャッジ時間 | 1,666 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
52,692 KB |
testcase_01 | AC | 38 ms
53,104 KB |
testcase_02 | WA | - |
testcase_03 | AC | 39 ms
52,712 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 38 ms
53,264 KB |
testcase_07 | WA | - |
testcase_08 | AC | 38 ms
53,100 KB |
testcase_09 | AC | 39 ms
52,464 KB |
testcase_10 | AC | 39 ms
53,088 KB |
testcase_11 | AC | 38 ms
53,928 KB |
testcase_12 | WA | - |
testcase_13 | AC | 39 ms
52,796 KB |
testcase_14 | AC | 38 ms
52,876 KB |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
ソースコード
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] if S==T: print(ans[0]) exit() S = [s[::-1] for s in S[::-1]] if S==T: print(ans[1]) else: print(-1)