摘要: ACM-ICPC 2017 Asia Shenyan F. Heron and His Triangle 三边长给出,海伦公式算出面积,暴力枚举整数情况,得: 4,14,52,194,724等数据 之后就要灵性找规律了,得:a[i] = a[i-1]*4-a[i-2] 总结:1.对于类似题目,暴力枚 阅读全文
posted @ 2020-04-13 23:51 Y-KnightQin 阅读(141) 评论(0) 推荐(0) 编辑
摘要: A n种即可 B 头尾开始取或中间开始取都可 #include <bits/stdc++.h> #define debug freopen("r.txt","r",stdin) #define mp make_pair using namespace std; typedef long long l 阅读全文
posted @ 2020-04-13 17:38 Y-KnightQin 阅读(129) 评论(0) 推荐(0) 编辑