HDU 2050 折线分割平面 -
来源:互联网 发布:linux 2017年重大漏洞 编辑:程序博客网 时间:2024/06/05 11:23
题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=2050
待定系数直接求出公式了
ax^2+bx+c
得
2*x*x-x+1
#include <iostream>#include <cstdio>#include <algorithm>#include <cstring>#include <cctype>#include <cmath>#include <sstream>#include <vector>using namespace std;#define REP(i,a,b) for(int i=a;i<(int)b;i++)#define REPD(i,a,b) for(int i=a;i>=(int)b;i--)int main(){int T,n; scanf("%d",&T);while(T--&&scanf("%d",&n)==1){printf("%d\n", 2*n*n-n+1);}return 0;}
0 0
- hdu 2050折线分割平面
- hdu 2050 折线分割平面
- HDU--2050折线分割平面
- HDU 2050 折线分割平面
- hdu,2050,折线分割平面
- hdu 2050 折线分割平面
- HDU 2050 折线分割平面
- hdu 2050 折线分割平面
- HDU 2050 折线分割平面
- hdu 2050 折线分割平面
- hdu 2050 - 折线分割平面
- hdu 2050 折线分割平面
- hdu 2050 折线分割平面
- hdu-2050-折线分割平面
- HDU 2050 折线分割平面
- HDU 2050 折线分割平面
- hdu 2050 折线分割平面
- HDU 2050 - 折线分割平面
- JavaSe总结-10--面向对象(5)
- [Leetcode] #154 Find Minimum in Rotated Sorted Array II
- java第九天
- 数据结构学习笔记第一篇 -- 我对数据结构的看法
- 卷积神经网络物体检测之感受野大小计算
- HDU 2050 折线分割平面 -
- 读《读库 1701》
- 京东商品详情页服务闭环实践
- PHP5.6.9默认会开启库
- sizeof用法介绍
- 开通博客
- 二叉树经典面试题6~二叉树中和为某一值的路径
- git设置账户名和邮箱
- maven初次使用