結果

問題 No.1828 Except 3
ユーザー tnodino
提出日時 2022-05-06 19:38:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 56 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 171 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 67,200 KB
最終ジャッジ日時 2024-07-05 20:35:59
合計ジャッジ時間 1,865 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 1
A = list(map(int,input().split()))
cnt = 0
for i in range(N):
    if A[i] % 3:
        cnt += 1
ans *= cnt
B = list(map(int,input().split()))
cnt = 0
for i in range(N):
    if B[i] % 3:
        cnt += 1
ans *= cnt
C = list(map(int,input().split()))
cnt = 0
for i in range(N):
    if C[i] % 3:
        cnt += 1
ans *= cnt
print(ans)
0