結果

問題 No.1828 Except 3
ユーザー lllllll88938494
提出日時 2022-08-17 07:23:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 280 ms
コンパイル使用メモリ 82,356 KB
実行使用メモリ 67,000 KB
最終ジャッジ日時 2024-10-04 05:33:00
合計ジャッジ時間 1,929 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
c=list(map(int,input().split()))

def  cal(x):
    cnt =0
    for i in x:
        if i%3 != 0:
            cnt+= 1
    return cnt

cnta = cal(a)
cntb = cal(b)
cntc = cal(c)

print(cnta * cntb * cntc)
0