結果

問題 No.1828 Except 3
ユーザー kept1994kept1994
提出日時 2022-03-19 12:59:21
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 444 bytes
コンパイル時間 290 ms
コンパイル使用メモリ 81,972 KB
実行使用メモリ 67,804 KB
最終ジャッジ日時 2024-04-15 02:07:14
合計ジャッジ時間 1,948 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
59,552 KB
testcase_01 AC 45 ms
67,804 KB
testcase_02 AC 36 ms
52,652 KB
testcase_03 AC 34 ms
52,672 KB
testcase_04 AC 34 ms
53,076 KB
testcase_05 AC 35 ms
52,556 KB
testcase_06 AC 35 ms
53,228 KB
testcase_07 AC 36 ms
53,192 KB
testcase_08 AC 36 ms
52,608 KB
testcase_09 AC 37 ms
53,492 KB
testcase_10 AC 36 ms
52,212 KB
testcase_11 AC 36 ms
52,472 KB
testcase_12 AC 36 ms
52,888 KB
testcase_13 AC 36 ms
53,440 KB
testcase_14 AC 39 ms
59,396 KB
testcase_15 AC 39 ms
59,092 KB
testcase_16 AC 35 ms
53,876 KB
testcase_17 AC 35 ms
53,784 KB
testcase_18 AC 35 ms
52,752 KB
testcase_19 AC 36 ms
53,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3

def main():
    N =  int(input())
    A = list(map(int, input().split()))
    B = list(map(int, input().split()))
    C = list(map(int, input().split()))
    la, lb, lc = 0, 0, 0
    for aa, bb, cc in zip(A, B, C):
        if aa % 3 != 0:
            la += 1
        if bb % 3 != 0:
            lb += 1
        if cc % 3 != 0:
            lc += 1
    print(la * lb * lc)
    return

if __name__ == '__main__':
    main()
0