結果

問題 No.1225 I hate I hate Matrix Construction
ユーザー 8wings64
提出日時 2020-09-11 21:49:06
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 296 bytes
コンパイル時間 583 ms
コンパイル使用メモリ 81,792 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-12-27 11:12:28
合計ジャッジ時間 3,632 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 32 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

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))      
0