Codeforces 592B The Monster and the Squirrel 【规律题】
来源:互联网 发布:三星s8打不开淘宝 编辑:程序博客网 时间:2024/05/30 19:32
题意:给定一个正n多边形,从它的顶点1引出一条射线,当碰到边、顶点反弹光线,问最后可以把多边形分成多少个区域。
规律 -> (n-2) * (n-2)
#include <cstdio>#include <cstring>#include <algorithm>#include <queue>#include <stack>#include <map>#define LL long long#define INF 0x3f3f3f3f#define debug printf("1\n")using namespace std;int main(){ LL n; while(scanf("%lld", &n) != EOF) { printf("%lld\n", (n-2)*(n-2)); } return 0;}
1 0
- Codeforces 592B The Monster and the Squirrel 【规律题】
- codeforces B. The Monster and the Squirrel
- CodeForces 592B The Monster and the Squirrel
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel(数学规律)
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel (规律)
- codeforces round The Monster and the Squirrel 529B (数学规律)
- The Monster and the Squirrel(规律题)
- B. The Monster and the Squirrel
- 【Codeforces Round 328 (Div 2)B】【找规律】The Monster and the Squirrel 正多边形连边分割块数
- Codeforces Round #328 (Div. 2) 592 B. The Monster and the Squirrel
- cf#328-B. The Monster and the Squirrel-水题+数学规律
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel
- Codeforces Round #328 (Div. 2)B. The Monster and the Squirrel
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel
- Codeforces Round #328 (Div. 2)B. The Monster and the Squirrel
- Codeforces Round #328 (Div. 2) B. The Monster and the Squirrel(math)
- cf 328div 2 B. The Monster and the Squirrel
- Code Forces 592 B. The Monster and the Squirrel(水~)
- 欢迎使用CSDN-markdown编辑器
- Codeforces 592A PawnChess 【水题】
- 摘录
- 解决https需要验证问题
- PHP中CURL的CURLOPT_POSTFIELDS参数使用细节
- Codeforces 592B The Monster and the Squirrel 【规律题】
- Android四大组件之Service(服务)(二)
- spring boot实战(第十三篇)自动配置原理分析
- android 基础的小问题1(Adapter的数据无法刷新)
- 不同的列表选择不同的遍历方法
- 工程目录结构、adb命令
- CentOS下MySQL的安装和修改用户密码
- hdu 1063 Exponentiatio(East Central North America 1988)
- NOI题库 09:图像旋转翻转变换