結果

問題 No.1146 土偶Ⅰ
ユーザー convexineqconvexineq
提出日時 2021-05-11 01:58:52
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 81,784 KB
実行使用メモリ 75,156 KB
最終ジャッジ日時 2023-10-21 06:45:03
合計ジャッジ時間 2,666 ms
ジャッジサーバーID
(参考情報)
judge10 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
53,656 KB
testcase_01 AC 39 ms
53,656 KB
testcase_02 AC 39 ms
53,656 KB
testcase_03 AC 53 ms
63,952 KB
testcase_04 AC 98 ms
75,156 KB
testcase_05 AC 56 ms
63,952 KB
testcase_06 AC 70 ms
68,048 KB
testcase_07 AC 85 ms
72,224 KB
testcase_08 AC 98 ms
75,148 KB
testcase_09 AC 61 ms
66,000 KB
testcase_10 AC 52 ms
61,904 KB
testcase_11 AC 69 ms
68,048 KB
testcase_12 AC 99 ms
75,148 KB
testcase_13 AC 38 ms
53,656 KB
testcase_14 AC 62 ms
66,000 KB
testcase_15 AC 86 ms
72,760 KB
testcase_16 AC 65 ms
66,000 KB
testcase_17 AC 40 ms
53,656 KB
testcase_18 AC 46 ms
59,836 KB
testcase_19 AC 62 ms
66,000 KB
testcase_20 AC 45 ms
59,836 KB
testcase_21 AC 51 ms
61,904 KB
testcase_22 AC 50 ms
61,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import gcd
from itertools import combinations
n,*a = map(int,open(0).read().split())
f = lambda x,y,z: gcd(gcd(x,y),z)
print(sum(f(*lst)==1 for lst in combinations(a,3)))
0