diff --git a/GESP/[GESP202312 三级] 小猫分鱼 c++.txt b/GESP/[GESP202312 三级] 小猫分鱼 c++.txt deleted file mode 100644 index 382e1ac..0000000 --- a/GESP/[GESP202312 三级] 小猫分鱼 c++.txt +++ /dev/null @@ -1 +0,0 @@ -https://blog.csdn.net/zhanghexuan2013/article/details/136475503 \ No newline at end of file diff --git a/GESP/小猫分鱼.md b/GESP/小猫分鱼.md new file mode 100644 index 0000000..3eb1454 --- /dev/null +++ b/GESP/小猫分鱼.md @@ -0,0 +1,27 @@ +![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404011627855.png) + +```cpp {.line-numbers} +// Created by www.runoob.com on 15/11/9. +// Copyright © 2015年 菜鸟教程. All rights reserved. +// + +#include +#include +int main() +{ + int x,i=0,j=1; + while(i<5){ + x=4*j; + for(i=0;i<5;i++) + { + if(x%4!=0){break;} + x=(x/4)*5+1; + } + j++; + } + printf("%d\n",x); + + return 0; +} + +``` \ No newline at end of file