当前位置:网站首页>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. 修剪二叉搜索树
- leetcode - 287. 寻找重复数
- [literacy] deep / shallow, local / global features in machine learning image processing
- Resttemplate remote call tool class
- 好友新书发布,祝贺(送福利)
- FFMpeg学习笔记
- 聊一聊Zabbix都监控哪些参数
- Slope compensation
- Today's sleep quality record 71 points
- Wechat open platform scanning code login [easy to understand]
猜你喜欢

多图预警~ 华为 ECS 与 阿里云 ECS 对比实战

分享一个一年经历两次裁员的程序员的一些感触

Fiori applications are shared through the enhancement of adaptation project

SAP UI5 应用开发教程之一百零四 - SAP UI5 表格控件的支持复选(Multi-Select)以及如何用代码一次选中多个表格行项目

使用 Three.js 实现'雪糕'地球,让地球也凉爽一夏

切面条 C语言

The fixed assets management subsystem reports are divided into what categories and which accounts are included

隐藏用户的创建和使用

Understanding of indexes in MySQL

详解Kubernetes网络模型
随机推荐
好友新书发布,祝贺(送福利)
阿洛迷茫后的思考
SAP GUI 里的收藏夹事务码管理工具
切面条 C语言
Wechat open platform scanning code login [easy to understand]
Appium自动化测试基础 — APPium安装(一)
Mysql database detailed learning tutorial
陈天奇的机器学习编译课(免费)
Two schemes of transforming the heat map of human posture estimation into coordinate points
死锁的处理策略—预防死锁、避免死锁、检测和解除死锁
C#/VB.NET 给PDF文档添加文本/图像水印
性能测试计划怎么编写
20220701
Pytorch nn. functional. Simple understanding and usage of unfold()
QT版本华睿相机的Demo程序实现
Awoo's favorite problem (priority queue)
[untitled]
[literacy] deep / shallow, local / global features in machine learning image processing
详解Kubernetes网络模型
Mysql——》索引存储模型推演