結果

問題 No.2209 Flip and Reverse
ユーザー hiryuNhiryuN
提出日時 2023-02-10 21:33:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,124 KB
実行使用メモリ 83,248 KB
最終ジャッジ日時 2023-09-21 22:37:15
合計ジャッジ時間 5,431 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
70,924 KB
testcase_01 AC 70 ms
71,116 KB
testcase_02 AC 71 ms
71,192 KB
testcase_03 AC 72 ms
71,032 KB
testcase_04 AC 72 ms
71,140 KB
testcase_05 AC 71 ms
71,024 KB
testcase_06 AC 70 ms
71,356 KB
testcase_07 AC 70 ms
71,240 KB
testcase_08 AC 107 ms
82,808 KB
testcase_09 AC 71 ms
71,360 KB
testcase_10 AC 70 ms
71,256 KB
testcase_11 AC 71 ms
71,204 KB
testcase_12 AC 71 ms
71,260 KB
testcase_13 AC 71 ms
71,356 KB
testcase_14 AC 125 ms
83,052 KB
testcase_15 AC 126 ms
83,220 KB
testcase_16 AC 126 ms
83,132 KB
testcase_17 AC 125 ms
82,936 KB
testcase_18 AC 125 ms
83,248 KB
testcase_19 AC 124 ms
83,180 KB
testcase_20 AC 127 ms
83,060 KB
testcase_21 AC 126 ms
82,992 KB
testcase_22 AC 126 ms
83,184 KB
testcase_23 AC 125 ms
83,136 KB
testcase_24 AC 121 ms
83,172 KB
testcase_25 AC 120 ms
82,968 KB
testcase_26 AC 122 ms
83,104 KB
testcase_27 AC 120 ms
83,060 KB
testcase_28 AC 110 ms
83,064 KB
testcase_29 AC 111 ms
83,044 KB
testcase_30 AC 108 ms
83,176 KB
testcase_31 AC 107 ms
83,168 KB
testcase_32 AC 106 ms
83,136 KB
testcase_33 AC 108 ms
83,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
s=input()
t=input()
ss=s[::-1]
sei=0
gya=0
for q in range(n):
    if s[q]!=t[q]:
        sei+=1
    if ss[q]!=t[q]:
        gya+=1
if sei%2==0:
    ans=sei
if gya%2==1:
    ans=gya
print(ans)
0