結果
| 問題 | 
                            No.1183 コイン遊び
                             | 
                    
| コンテスト | |
| ユーザー | 
                             aspi
                         | 
                    
| 提出日時 | 2020-08-01 13:14:11 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 262 bytes | 
| コンパイル時間 | 249 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 16,768 KB | 
| 最終ジャッジ日時 | 2024-07-07 23:57:28 | 
| 合計ジャッジ時間 | 3,371 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | RE * 3 | 
| other | RE * 32 | 
ソースコード
ans=0
n=int(input())
a=list(map(int,input().sprit()))
b=list(map(int,input().sprit()))
c=[0]
for i in range(n):
    if a[i]==b[i]:
        c.append(0)
    else:
        c.append(1)
c.append(0)
for i in range(n+1):
    if c[i]!=c[i+1]:
        ans+=1
print(ans/2)
            
            
            
        
            
aspi