結果

問題 No.1828 Except 3
ユーザー harapecoharapeco
提出日時 2022-03-11 11:21:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 295 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 86,988 KB
実行使用メモリ 76,160 KB
最終ジャッジ日時 2023-10-13 14:32:30
合計ジャッジ時間 2,802 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
75,544 KB
testcase_01 AC 83 ms
76,160 KB
testcase_02 AC 72 ms
71,312 KB
testcase_03 AC 77 ms
71,244 KB
testcase_04 AC 71 ms
71,476 KB
testcase_05 AC 73 ms
71,312 KB
testcase_06 AC 74 ms
71,348 KB
testcase_07 AC 73 ms
71,372 KB
testcase_08 AC 73 ms
71,220 KB
testcase_09 AC 74 ms
71,152 KB
testcase_10 AC 72 ms
71,376 KB
testcase_11 AC 73 ms
71,336 KB
testcase_12 AC 74 ms
71,340 KB
testcase_13 AC 73 ms
71,500 KB
testcase_14 AC 77 ms
75,532 KB
testcase_15 AC 77 ms
75,508 KB
testcase_16 AC 73 ms
71,340 KB
testcase_17 AC 74 ms
71,380 KB
testcase_18 AC 72 ms
71,212 KB
testcase_19 AC 74 ms
71,448 KB
権限があれば一括ダウンロードができます

ソースコード

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