結果

問題 No.1828 Except 3
ユーザー harapeco
提出日時 2022-03-11 11:21:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 357 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 66,816 KB
最終ジャッジ日時 2024-09-15 11:18:41
合計ジャッジ時間 1,926 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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()))
a1,b1,c1 = 0,0,0
for i in a:
    if i % 3 != 0:
        a1 += 1
for j in b:
    if j % 3 != 0:
        b1 += 1
for k in c:
    if k % 3 != 0:
        c1 += 1
print(a1*b1*c1)
0