当前位置:网站首页>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;
}
边栏推荐
- Lc669. Prune binary search tree
- Cloud Vulnerability Global Database
- General use of qstringlist
- The fixed assets management subsystem reports are divided into what categories and which accounts are included
- MySQL的视图练习题
- 【日常训练】326. 3 的幂
- 固定资产管理子系统报表分为什么大类,包括哪些科目
- Arlo's thinking after confusion
- 陈天奇的机器学习编译课(免费)
- 3DE resources have nothing or nothing wrong
猜你喜欢

SAP GUI 里的收藏夹事务码管理工具

陈天奇的机器学习编译课(免费)

Dark horse programmer - software testing - stage 06 2-linux and database-01-08 Chapter 1 - description of the content of the Linux operating system stage, description of the basic format and common fo

Rust语言——小小白的入门学习05

【图像分割】2021-SegFormer NeurIPS

Appium自动化测试基础 — 补充:Desired Capabilities参数介绍

Slope compensation

Compensation des créneaux horaires

隐藏用户的创建和使用

使用 Three.js 实现'雪糕'地球,让地球也凉爽一夏
随机推荐
MySQL5.7 设置密码策略(等保三级密码改造)
SAP intelligent robot process automation (IRPA) solution sharing
Single step debugging analysis of rxjs observable of operator
awoo‘s Favorite Problem(优先队列)
Ida dynamic debugging apk
447-哔哩哔哩面经1
多图预警~ 华为 ECS 与 阿里云 ECS 对比实战
map容器
Slope compensation
使用 Three.js 实现'雪糕'地球,让地球也凉爽一夏
详解Kubernetes网络模型
nn. Parameter] pytoch feature fusion adaptive weight setting (learnable weight use)
Resttemplate remote call tool class
【无标题】
Explain kubernetes network model in detail
下班前几分钟,我弄清了v-model与.sync的区别
园区全光技术选型-中篇
Chen Tianqi's machine learning compilation course (free)
Using securecrtportable to remotely connect virtual machines
Efficiency improvement - encourage personalized container development environment