Scientific Problem
来源:互联网 发布:农村淘宝报名有用吗 编辑:程序博客网 时间:2024/06/05 21:14
Scientific Problem
Time Limit:500MSMemory Limit:65536KB 64bit IO Format:%I64d & %I64u
Description
Once upon a time Professor Idioticideasinventor was travelling by train. Watching cheerless landscape outside the window, he decided to invent the theme of his new scientific work. All of a sudden a brilliant idea struck him: to develop an effective algorithm finding an integer number, which is x times less than the sum of all its integer positive predecessors, where numberx is given. As far as he has no computer in the train, you have to solve this difficult problem.
Input
The first line of the input file contains an integer numberx (1 ≤ x ≤ 109).
Output
Output an integer number — the answer to the problem.
Sample Input
sample input
sample output
1
3
sample input
sample output
2
5
题意:给出一个数n,找出一个数m,小于m的数中有n个比n大的数
#include<cstdio>#include<string>#include<iostream>using namespace std;string str[105];int main(){ __int64 n; while(scanf("%I64d",&n)!=EOF) printf("%I64d\n",n*2+1); return 0;}
- Scientific Problem
- Scientific Problem(数学,简单)
- How To Choose a Good Scientific Problem
- SGU - 403 - Scientific Problem (水)
- Scientific Linux
- Scientific Conference
- Scientific Computing in Java
- Scientific Calculator ScienCalc 1.0
- GSL - GNU Scientific Library
- Planning for scientific discovery
- UVA 4996 Scientific Experiment
- GSL--GNU Scientific Library
- Timus 1203. Scientific Conference
- Ural 1203. Scientific Conference
- GSL--GNU Scientific Library
- 1073. Scientific Notation <string>
- ural 1203. Scientific Conference
- 1073. Scientific Notation
- poj 2907 dfs题
- Windows下安装Eclipse CDT
- uva_327_Evaluating Simple C Expressions
- JSP脚本片断
- POJ1321,棋盘问题,中文题
- Scientific Problem
- 判断CPU是大端,还是小段
- 线程安全的单间类
- 黑马程序员之C#学习笔记: c#中重写(覆盖)和隐藏类的方法
- 填写身份号码生日自动生成(1)
- windows2003远程桌面连接设置方法
- Android2.3下载与编译
- Ubuntu下Ibus输入法设置
- 水平集方法用于图像分割