結果
問題 | No.1146 土偶Ⅰ |
ユーザー |
![]() |
提出日時 | 2020-08-09 05:40:55 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 101 ms / 2,000 ms |
コード長 | 170 bytes |
コンパイル時間 | 126 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 11,008 KB |
最終ジャッジ日時 | 2024-10-03 07:23:34 |
合計ジャッジ時間 | 2,287 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 |
ソースコード
from math import gcd from itertools import combinations N, *A = map(int, open(0)) A = list(set(A)) print(sum(gcd(gcd(a, b), c) == 1 for a, b, c in combinations(A, 3)))