結果

問題 No.1146 土偶Ⅰ
ユーザー wolgnik
提出日時 2020-08-05 21:12:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 83 ms / 2,000 ms
コード長 236 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 82,020 KB
実行使用メモリ 68,208 KB
最終ジャッジ日時 2024-09-17 12:12:58
合計ジャッジ時間 2,071 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from itertools import combinations as combi
from math import gcd
input = sys.stdin.readline
N = int(input())
a = [int(input()) for _ in range(N)]
res = 0
for c in combi(a, 3): res += gcd(gcd(c[0], c[1]), c[2]) == 1
print(res)
0