結果
問題 |
No.1828 Except 3
|
ユーザー |
|
提出日時 | 2022-06-29 02:45:50 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 336 bytes |
コンパイル時間 | 181 ms |
コンパイル使用メモリ | 82,196 KB |
実行使用メモリ | 67,072 KB |
最終ジャッジ日時 | 2024-11-21 21:58:45 |
合計ジャッジ時間 | 2,426 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
import sys input = lambda: sys.stdin.readline().rstrip() # ----------------------- # n = int(input()) A = list(map(int, input().split())) B = list(map(int, input().split())) C = list(map(int, input().split())) a, b, c = 0, 0, 0 for i in range(n): if A[i] % 3: a += 1 if B[i] % 3: b += 1 if C[i] % 3: c += 1 print(a * b * c)