摘要: 打表即可: #include <bits/stdc++.h> using namespace std; #define int long long int ans[25]; signed main() { ans[1] = 1; ans[2] = 0; ans[3] = 18; ans[4] = 0 阅读全文
posted @ 2022-01-18 15:14 HappyBobb 阅读(4) 评论(0) 推荐(0)
摘要: 每座城市 pi\large p_ipi​ 距离起点位置为 ∣pi−x∣ \lvert p_i-x \lvert∣pi​−x∣,d dd 满足题意时当且仅当 d ∣ ∣pi−x∣(i=1,2,3,……,n) d \,\,|\,\, |p_i-x|(i=1,2,3,……,n)d∣∣pi​−x∣(i=1, 阅读全文
posted @ 2022-01-18 13:49 HappyBobb 阅读(19) 评论(0) 推荐(0)