結果

問題 No.1828 Except 3
ユーザー tnodinotnodino
提出日時 2022-05-06 19:38:50
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 86 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 348 ms
コンパイル使用メモリ 87,152 KB
実行使用メモリ 76,320 KB
最終ジャッジ日時 2023-09-19 08:48:48
合計ジャッジ時間 3,807 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
75,680 KB
testcase_01 AC 86 ms
76,320 KB
testcase_02 AC 75 ms
71,348 KB
testcase_03 AC 73 ms
71,196 KB
testcase_04 AC 75 ms
71,296 KB
testcase_05 AC 74 ms
71,264 KB
testcase_06 AC 76 ms
71,336 KB
testcase_07 AC 75 ms
71,148 KB
testcase_08 AC 74 ms
71,180 KB
testcase_09 AC 76 ms
71,548 KB
testcase_10 AC 74 ms
71,200 KB
testcase_11 AC 74 ms
71,480 KB
testcase_12 AC 75 ms
71,176 KB
testcase_13 AC 74 ms
70,980 KB
testcase_14 AC 79 ms
75,684 KB
testcase_15 AC 78 ms
75,728 KB
testcase_16 AC 74 ms
71,480 KB
testcase_17 AC 73 ms
71,284 KB
testcase_18 AC 77 ms
71,428 KB
testcase_19 AC 75 ms
71,308 KB
権限があれば一括ダウンロードができます

ソースコード

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