Auto commit

This commit is contained in:
smallkun 2025-02-27 19:38:17 +08:00
parent ee576351d9
commit 3a41de0e49

View File

@ -0,0 +1,34 @@
/*----------------------------------------------------------------------
------------------------------------------------------------------------
2121N小时后培养皿中有多少细胞
356
32
54
68
------------------------------------------------------------------------
main或其它函数中给出的内容
Program-End之间填入若干语句
Program-End之外的内容否则不得分
----------------------------------------------------------------------*/
#include <stdio.h>
int split(int hours)
{
/**********Program**********/
return hours<=1?1:split(hours-2)*2;
/********** End **********/
}
int main() {
int hour;
printf("请输入小时:");
scanf("%d",&hour);
printf("%d小时后%d个\n",hour, split(hour));
return 0;
}