hdu 1210 简单数学模拟
来源:互联网 发布:edu域名如何注册 编辑:程序博客网 时间:2024/06/04 19:20
不需要多说啥了吧
#include<iostream>using namespace std;#include<cstdio>int main(){ int n; while(cin>>n) { int ans=1,t=2; while(t!=1) { if(t<=n) t*=2; else t=(t-n)*2-1; ans++; } cout<<ans<<endl; } return 0;}
- hdu 1210 简单数学模拟
- 数学模拟 HDU-4814
- hdu 5491 The Next(数学模拟)
- hdu 4814 Golden Radio Base(数学模拟)
- hdu2076 水题数学模拟
- POJ 1019数学模拟题
- SCU2016-05 R题数学模拟
- wikioi之1083 Cantor表数学模拟题
- POJ 1700 cross river (数学模拟)
- CF#305-C. Mike and Frog-数学模拟
- hdoj--2522--A simple problem(数学模拟)
- UVALive 7511 Multiplication Table (数学模拟题)
- hzauoj Problem I: Catching Dogs (数学模拟)
- 3505Yet Another Set of Numbers (数学模拟题)
- CodeForces 321A Ciel and Robot(数学模拟)
- codeforce 492D. Vanya and Computer Game(数学模拟)
- hdoj 无限的路 2073 (数学模拟&预处理&转换)
- CodeForces 321A Ciel and Robot(数学模拟 枚举答案)
- BUAA_分切糕
- 第九次上机任务
- hdu 1086 线段相交
- 定义抽象基类Shape,由它派生出3个派生类,Circle、Rectangle、Triangle
- Windows Phone实现对SQL Server 2008的增删改查
- hdu 1210 简单数学模拟
- Linux 可加载内核模块剖析
- IE8中弹出窗口 隐藏地址栏
- vc api_获取系统信息和用户信息
- HDU/HDOJ 1242 Rescue 典型的迷宫广度优先搜索题
- Oracle 数据库表空间容量调整(表空间缩容脚本)脚本
- hdu 1213 并差集
- hdu-4112-Break the Chocolate
- 浣溪沙——纳兰性德