結果

問題 No.1828 Except 3
ユーザー An_On
提出日時 2025-03-25 23:53:08
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 265 ms
コンパイル使用メモリ 11,904 KB
実行使用メモリ 12,416 KB
最終ジャッジ日時 2025-03-25 23:53:11
合計ジャッジ時間 2,167 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #


def Main():
    n=int(input())
    a=[list(map(int,input().split()))for _ in range(3)]
    ans=1
    for i in range(3):
        temp=0
        for j in range(n):
            if a[i][j]%3!=0:
                temp+=1
        ans*=temp
    print(ans)


Main()
0