当前位置:网站首页>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;
}
边栏推荐
- Sogou wechat app reverse (II) so layer
- C#/VB.NET 给PDF文档添加文本/图像水印
- [C language] detailed explanation of malloc function [easy to understand]
- 台积电全球员工薪酬中位数约46万,CEO约899万;苹果上调日本的 iPhone 售价 ;Vim 9.0 发布|极客头条
- Pytorch's code for visualizing feature maps after training its own network
- Pytorch sharpening chapter | argmax and argmin functions
- flink sql-client 使用 对照并熟悉官方文档
- 园区全光技术选型-中篇
- Yyds dry goods inventory # solve the real problem of famous enterprises: egg twisting machine
- Appium automated testing foundation - Supplement: introduction to desired capabilities parameters
猜你喜欢
Kubernetes创建Service访问Pod
Clean up system cache and free memory under Linux
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
固定资产管理子系统报表分为什么大类,包括哪些科目
Rust language - Introduction to Xiaobai 05
MySQL MHA high availability configuration and failover
H5 model trained by keras to tflite
切面条 C语言
MySQL中对于事务的理解
隐藏用户的创建和使用
随机推荐
JVM有哪些类加载机制?
Single step debugging analysis of rxjs observable of operator
YOLOv5.5 调用本地摄像头
Measurement of reference loop gain and phase margin
447 Bili Bili noodles warp 1
【扫盲】机器学习图像处理中的深层/浅层、局部/全局特征
Use three JS realize the 'ice cream' earth, and let the earth cool for a summer
flink sql 命令行 连接 yarn
好友新书发布,祝贺(送福利)
高攀不起的希尔排序,直接插入排序
下班前几分钟,我弄清了v-model与.sync的区别
Friendly serial assistant tutorial_ How to configure friendly serial port debugging assistant - tutorial on using friendly serial port debugging assistant
功能测试报告的编写
切面条 C语言
FFMpeg学习笔记
rxjs Observable of 操作符的单步调试分析
友善串口助手使用教程_友善串口调试助手怎么进行配置-友善串口调试助手使用教程…
2020-ViT ICLR
MySQL的视图练习题
Two schemes of transforming the heat map of human posture estimation into coordinate points