不对

高楷伦  •  23天前


#include<iostream>  // cin\cout\endl 
#include<cstdio>    //scanf()\printf() 
#include<cstring>   // strcpy()\strcat()\strcmp()\strlen()\memset()  

#include<cmath>  //sqrt()\pow()\abs()\ceil()\floor()\max()\min()  
using namespace std; 
int raw(int x){ 
     if(x==10){ 
         return 1; 
     } 
       return raw(x-x*0.5)-1; 

int main(){ 
   cout<<raw(1); 
   return 0; 
}


评论: