摘要: A. Bestie You are given an array $a$ consisting of $n$ integers $a_1,a_2, \dots ,a_n$. Friends asked you to make the greatest common divisor (GCD) of 阅读全文
posted @ 2022-10-23 23:24 onlyblues 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 三元组 给定 $n$ 个两两不同的正整数 $a_1,a_2, \dots ,a_n$。 请你计算共有多少个三元组 $(i,j,k)$ 能够同时满足: $i<j<k$ $a_i>a_j>a_k$ 输入格式 第一行包含整数 $n$。 第二行包含 $n$ 个整数 $a_1,a_2, \dots ,a_n$ 阅读全文
posted @ 2022-10-23 09:49 onlyblues 阅读(212) 评论(0) 推荐(0) 编辑
Web Analytics