2021年11月15日
摘要: 1. https://www.luogu.com.cn/problem/P1775 题目大意: \(n\) 堆石子排成 一排 ,编号为 1, 2, 3,..., \(n\)。每堆石子有一定的质量,用一个整数来表述,现要将这 \(n\) 堆石子合并成为一堆,每次只能合并 相邻 的两堆,合并的代价为这两 阅读全文
posted @ 2021-11-15 21:05 Hamine 阅读(64) 评论(0) 推荐(0) 编辑
摘要: noj:http://39.98.219.132:8080/problem/208 #include <bits/stdc++.h> using namespace std; #define LL long long LL gcd(LL a, LL b){ return (a % b == 0) ? 阅读全文
posted @ 2021-11-15 20:03 Hamine 阅读(66) 评论(0) 推荐(0) 编辑