-
pku3475Paper, er, TranscriptFolding Game简单模拟题
简单模拟题,
输入时先排一个序就好了
![](https://www.cnblogs.com/Images/OutliningIndicators/ContractedBlock.gif)
Code
#include<stdio.h>
void process(double a,double b,double c,double d)
{
int result=0;
while(c>a)
{
c/=2;result++;
}
while(d>b)
{
d/=2;result++;
}
printf("%d\n",result);
}
int main()
{
double a,b,c,d,t;
while(scanf("%lf %lf %lf %lf",&a,&b,&c,&d)!=EOF)
{
if(a>b)
{
t=a;a=b;b=t;
}
if(c>d)
{
t=c;c=d;d=t;
}
process(a,b,c,d);
}
}
-
相关阅读:
高并发系统设计思考笔记
面试突击74:properties和yml有什么区别?
面试突击86:SpringBoot 事务不回滚?怎么解决?
面试突击82:SpringBoot 中如何操作事务?
面试突击75:SpringBoot 有几种读取配置文件的方法?
面试突击81:什么是跨域问题?如何解决?
面试突击73:IoC 和 DI 有什么区别?
面试突击85:为什么事务@Transactional会失效?
一文快速上手 Nacos 注册中心+配置中心!
面试突击72:输入URL之后会执行什么流程?
-
原文地址:https://www.cnblogs.com/pandy/p/1339124.html
Copyright © 2020-2023
润新知