当前位置:网站首页>Cut noodles C language
Cut noodles C language
2022-07-01 22:49:00 【Large dish color】
Cut noodles
A high rib pull surface , Cut a knife in the middle , You can get 2 Root noodle .
If you fold it in half first 1 Time , Cut a knife in the middle , You can get 3 Root noodle .
If you fold in half continuously 2 Time , Cut a knife in the middle , You can get 5 Root noodle . that , Continuous folding 10 Time , Cut a knife in the middle , How many noodles will you get ?
Ideas :
Source code :
#include<stdio.h>
#include<math.h>
int main()
{
double sum=2;
for(int n=1;n<=10;n++)
sum+=pow(2.0,n-1);
printf("%.0f",sum);
return 0;
}
边栏推荐
- 固定资产管理子系统报表分为什么大类,包括哪些科目
- Kubernetes创建Service访问Pod
- 利用SecureCRTPortable远程连接虚拟机
- Niuke monthly race - logarithmic sum in groups
- 好友新书发布,祝贺(送福利)
- SAP GUI 里的收藏夹事务码管理工具
- MySQL stored procedure
- Two schemes of transforming the heat map of human posture estimation into coordinate points
- 下班前几分钟,我弄清了v-model与.sync的区别
- Measurement of reference loop gain and phase margin
猜你喜欢
随机推荐
Using securecrtportable to remotely connect virtual machines
[jetcache] how to use jetcache
Easyexcel complex data export
Rust语言——小小白的入门学习05
Mysql5.7 set password policy (etc. three-level password transformation)
【图像分割】2021-SegFormer NeurIPS
园区全光技术选型-中篇
死锁的处理策略—预防死锁、避免死锁、检测和解除死锁
MySQL中对于索引的理解
SAP ui5 application development tutorial 104 - multi select support for SAP ui5 table controls and how to use code to select multiple table row items at a time
Slope compensation
Sogou wechat app reverse (II) so layer
Pytorch's code for visualizing feature maps after training its own network
今日睡眠质量记录71分
Mysql database detailed learning tutorial
Measurement of reference loop gain and phase margin
3DE resources have nothing or nothing wrong
牛客月赛-分组求对数和
pytorch训练自己网络后可视化特征图谱的代码
MySQL的视图练习题







