'commit'
This commit is contained in:
27
GESP/资料/小猫分鱼.md
Normal file
27
GESP/资料/小猫分鱼.md
Normal file
@@ -0,0 +1,27 @@
|
||||

|
||||
|
||||
```cpp {.line-numbers}
|
||||
// Created by www.runoob.com on 15/11/9.
|
||||
// Copyright © 2015年 菜鸟教程. All rights reserved.
|
||||
//
|
||||
|
||||
#include<stdio.h>
|
||||
#include<stdlib.h>
|
||||
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;
|
||||
}
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user