当前位置:网站首页>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;
}
边栏推荐
- C#/VB.NET 给PDF文档添加文本/图像水印
- MySQL中对于事务的理解
- 陈天奇的机器学习编译课(免费)
- Understanding of indexes in MySQL
- 记录一次spark on yarn 任务报错 Operation category READ is not supported in state standby
- Fiori applications are shared through the enhancement of adaptation project
- Ida dynamic debugging apk
- mixconv代码
- Explain kubernetes network model in detail
- MySQL中对于索引的理解
猜你喜欢
随机推荐
104. SAP ui5 table control supports multi select and how to select multiple table row items at a time with code
QT版本华睿相机的Demo程序实现
删除AWS绑定的信用卡账户
【JetCache】JetCache的使用方法与步骤
元宇宙可能成为互联网发展的新方向
[literacy] deep / shallow, local / global features in machine learning image processing
pytorch训练自己网络后可视化特征图谱的代码
Awoo's favorite problem (priority queue)
Tourism Management System
Configure filter
Use three JS realize the 'ice cream' earth, and let the earth cool for a summer
【图像分割】2021-SegFormer NeurIPS
Learning notes on futuretask source code of concurrent programming series
Wechat open platform scanning code login [easy to understand]
Compensation des créneaux horaires
Mysql——》索引存储模型推演
Share some feelings of a programmer who has experienced layoffs twice a year
MySQL中对于索引的理解
Rust语言——小小白的入门学习05
Mixconv code

![快乐数[环类问题之快慢指针]](/img/37/5c94b9b062a54067a50918f94e61ea.png)







