結果
問題 |
No.1828 Except 3
|
ユーザー |
![]() |
提出日時 | 2022-02-05 12:22:36 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 58 ms / 2,000 ms |
コード長 | 435 bytes |
コンパイル時間 | 263 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 72,192 KB |
最終ジャッジ日時 | 2024-06-11 13:27:35 |
合計ジャッジ時間 | 1,866 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 16 |
ソースコード
from collections import Counter n = int(input()) a = list(map(int,input().split())) b = list(map(int,input().split())) c = list(map(int,input().split())) a_3 = list(map(lambda x:x % 3,a)) b_3 = list(map(lambda x:x % 3,b)) c_3 = list(map(lambda x:x % 3,c)) a_counter = Counter(a_3) b_counter = Counter(b_3) c_counter = Counter(c_3) print((a_counter[1] + a_counter[2]) * (b_counter[1] + b_counter[2]) * (c_counter[1] + c_counter[2]))