結果

問題 No.1828 Except 3
ユーザー brthyyjpbrthyyjp
提出日時 2022-02-02 17:20:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 76 ms / 2,000 ms
コード長 298 bytes
コンパイル時間 297 ms
コンパイル使用メモリ 86,784 KB
実行使用メモリ 76,500 KB
最終ジャッジ日時 2023-09-02 02:51:56
合計ジャッジ時間 3,161 ms
ジャッジサーバーID
(参考情報)
judge16 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
75,672 KB
testcase_01 AC 76 ms
76,500 KB
testcase_02 AC 69 ms
71,404 KB
testcase_03 AC 69 ms
71,208 KB
testcase_04 AC 72 ms
71,088 KB
testcase_05 AC 71 ms
71,408 KB
testcase_06 AC 69 ms
71,176 KB
testcase_07 AC 69 ms
71,200 KB
testcase_08 AC 69 ms
71,304 KB
testcase_09 AC 69 ms
71,428 KB
testcase_10 AC 70 ms
71,316 KB
testcase_11 AC 67 ms
71,104 KB
testcase_12 AC 69 ms
71,336 KB
testcase_13 AC 69 ms
71,148 KB
testcase_14 AC 72 ms
75,564 KB
testcase_15 AC 72 ms
75,692 KB
testcase_16 AC 69 ms
71,444 KB
testcase_17 AC 69 ms
71,132 KB
testcase_18 AC 68 ms
71,336 KB
testcase_19 AC 69 ms
71,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
C = list(map(int, input().split()))

ca = 0
cb = 0
cc = 0
for a in A:
    if a%3 != 0:
        ca += 1
for b in B:
    if b%3 != 0:
        cb += 1
for c in C:
    if c%3 != 0:
        cc += 1
print(ca*cb*cc)
0