Buct oj 1019
来源:互联网 发布:chrome淘宝抢购插件 编辑:程序博客网 时间:2024/05/08 22:07
#include<stdio.h>
#include<math.h>
int main()
{
int i,N;
double x,y,M;
scanf("%lf%d",&M,&N);
x=M*pow(0.5,N);
y=3*M-2*M*pow(0.5,N-1);
printf("%0.2f %0.2f",x,y);
}
#include<math.h>
int main()
{
int i,N;
double x,y,M;
scanf("%lf%d",&M,&N);
x=M*pow(0.5,N);
y=3*M-2*M*pow(0.5,N-1);
printf("%0.2f %0.2f",x,y);
}
0 0
- Buct oj 1019
- Buct oj
- Buct oj 1012
- Buct oj 1013
- Buct oj 1016
- Buct oj 1015
- Buct oj 1016
- Buct oj 1018
- BUCT OJ 数字三角形
- BUCT-OJ 2046 数字三角形
- BUCT OJ 1711: 错位排序
- BUCT OJ 任务安排问题
- BUCT-OJ 2052 数字三角形2
- BUCT-OJ 2055 数字三角形3
- BUCT-OJ 2060 数字三角形4
- BUCT oj 1852~1856 棋盘问题
- BUCT OJ 2264: The Unsolvable Problem
- buct oj 最大公共子序列问题
- 探索《How Tomcat Works》心得(四)生命周期 Lifecycle
- listview中多个控件添加静态数组
- leetcode刷题,总结,记录,备忘 223
- IP协议详解之配套协议:ARP, ICMP
- paint.setXfermode属性(圆形头像用到了)
- Buct oj 1019
- Android app优化之导致app 卡顿慢的直接原因
- bootstarp
- Codeforces 235B Let's Play Osu! (概率)
- TCP/IP协议族之运输层(TCP流量控制和拥塞控制 [1])
- 希腊字母发音
- C#double转化成字符串 保留小数位数, 不以科学计数法的形式出现。
- Android开发java程序员常用代码,将字符串以逗号分别取出字符串String
- 深度学习FPGA实现基础知识10(Deep Learning(深度学习)卷积神经网络(Convolutional Neural Network,CNN))