結果

問題 No.1828 Except 3
ユーザー MasKoaTSMasKoaTS
提出日時 2022-02-01 21:17:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 86,956 KB
実行使用メモリ 76,388 KB
最終ジャッジ日時 2023-09-02 02:35:19
合計ジャッジ時間 2,572 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
75,764 KB
testcase_01 AC 77 ms
76,388 KB
testcase_02 AC 66 ms
71,536 KB
testcase_03 AC 65 ms
71,412 KB
testcase_04 AC 67 ms
71,408 KB
testcase_05 AC 66 ms
71,420 KB
testcase_06 AC 67 ms
71,236 KB
testcase_07 AC 67 ms
71,256 KB
testcase_08 AC 67 ms
71,416 KB
testcase_09 AC 67 ms
71,464 KB
testcase_10 AC 66 ms
71,428 KB
testcase_11 AC 65 ms
71,312 KB
testcase_12 AC 66 ms
71,548 KB
testcase_13 AC 69 ms
71,460 KB
testcase_14 AC 69 ms
75,844 KB
testcase_15 AC 69 ms
75,788 KB
testcase_16 AC 66 ms
71,392 KB
testcase_17 AC 66 ms
71,308 KB
testcase_18 AC 67 ms
71,100 KB
testcase_19 AC 68 ms
71,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

p, q, r = [0, 0, 0]
for i in a:
    if(i % 3 == 0):
        continue
    p += 1
for i in b:
    if(i % 3 == 0):
        continue
    q += 1
for i in c:
    if(i % 3 == 0):
        continue
    r += 1
print(p * q * r)
0