結果

問題 No.1828 Except 3
ユーザー 330Xs330Xs
提出日時 2022-02-05 12:22:36
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 645 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 77,384 KB
最終ジャッジ日時 2023-09-02 06:33:44
合計ジャッジ時間 3,918 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 109 ms
77,172 KB
testcase_01 AC 119 ms
77,384 KB
testcase_02 AC 101 ms
71,612 KB
testcase_03 AC 100 ms
71,476 KB
testcase_04 AC 102 ms
71,500 KB
testcase_05 AC 101 ms
71,884 KB
testcase_06 AC 98 ms
71,512 KB
testcase_07 AC 100 ms
71,480 KB
testcase_08 AC 99 ms
71,596 KB
testcase_09 AC 100 ms
71,560 KB
testcase_10 AC 100 ms
71,784 KB
testcase_11 AC 100 ms
71,656 KB
testcase_12 AC 100 ms
71,660 KB
testcase_13 AC 101 ms
71,544 KB
testcase_14 AC 108 ms
77,012 KB
testcase_15 AC 108 ms
77,032 KB
testcase_16 AC 99 ms
71,496 KB
testcase_17 AC 98 ms
71,356 KB
testcase_18 AC 98 ms
71,624 KB
testcase_19 AC 101 ms
71,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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])) 
0