UVa OJ 10071,10055,113
来源:互联网 发布:怎样看网络直播送礼物 编辑:程序博客网 时间:2024/06/05 02:53
怎么这两题比之前的100和102还简单。。。不晓得写那个难度分级表是不是初中物理木有学好。。。。
#include <iostream>using namespace std;int Displacement(int V_t, int T){return V_t*T * 2;}int main(){int t, v_t;while (cin>>v_t>>t)cout<<Displacement(v_t, t)<<endl;}10055就不写了,写一个113,同样是水题,注意强制类型转换的使用,回顾dynamic_cast和static_cast,前者应用于多态类
#include <iostream>#include <math.h>using namespace std;int main(){//即求p的1/n次方,但是需要注意的是返回值再转换为intdouble n, p;while (cin >> n >> p){cout<<static_cast<int>(pow(p, 1.0 / n)+0.5)<<endl;}return 0;}
0 0
- UVa OJ 10071,10055,113
- uva oj 10071
- UVa OJ
- UVa OJ 10055-Hashmat the Brave Warrior
- UVa OJ 10055 - Hashmat the Brave Warrior
- UVA OJ: 10055 - Hashmat the Brave Warrior
- UVa OJ 113-Power of Cryptography
- uva oj java输入输出
- UVa OJ 401-Palindromes
- UVa OJ 579-ClockHands
- UVa OJ 10082-WERTYU
- UVa OJ 673-Parentheses
- UVa OJ 10106-Product
- UVa OJ 748-Exponentiation
- UVa OJ 11417-GCD
- UVa OJ 11926-Multitasking
- uva oj 414
- uva oj 458
- ubuntu内核list.h 的分析与应用
- JSP编程技术4-登录与注销(静态)
- jstl 及tiles在marven中引入
- heap与stack区别
- java中的方法能重写,属性能重写吗?
- UVa OJ 10071,10055,113
- BZOJ 1798 AHOI2009 Seq 维护序列 线段树
- 关于命令行上执行java命令的错误分析 - Could not find or load main class
- Linux修改主机IP并永久生效
- 打造linux下的source insight--YouCompleteMe安装
- storm运行wordcount例子
- 【FastJSON】将FastJSON作为工具类集成到项目中
- 招聘 - ASP.NET MVC初级工程师和Xamarin初级工程师
- 致加西亚的信观后有感