結果
| 問題 | 
                            No.1225 I hate I hate Matrix Construction
                             | 
                    
| コンテスト | |
| ユーザー | 
                             8wings64
                         | 
                    
| 提出日時 | 2020-09-11 22:08:47 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 292 bytes | 
| コンパイル時間 | 169 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,880 KB | 
| 最終ジャッジ日時 | 2024-12-27 13:19:41 | 
| 合計ジャッジ時間 | 2,383 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 32 WA * 3 | 
ソースコード
N = int(input())
S = list(map(int,input().split()))
T = list(map(int,input().split()))
ans_s = 0
ans_t = 0
for i in S:
    if i == 1:
        ans_s+=1
    elif i == 2:
        ans_s += N
for j in T:
    if j == 1:
        ans_t+=1
    elif j == 2:
        ans_t += N
print(max(ans_s,ans_t))  
            
            
            
        
            
8wings64