結果
| 問題 | No.1146 土偶Ⅰ |
| ユーザー |
wolgnik
|
| 提出日時 | 2020-08-05 21:12:44 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 95 ms / 2,000 ms |
| + 417µs | |
| コード長 | 236 bytes |
| 記録 | |
| コンパイル時間 | 507 ms |
| コンパイル使用メモリ | 95,984 KB |
| 実行使用メモリ | 83,968 KB |
| 最終ジャッジ日時 | 2026-08-29 13:26:29 |
| 合計ジャッジ時間 | 3,453 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
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)
wolgnik