0.100
1.11
2.
3.a=14;b=5;c=9
4.
5.A.if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
bill = cost * flag;
B.if (ibex > 14)
{
sheds = 3;}
sheds = 2;
help = 2 * sheds;
C.
if (score < 0)
{
printf("count = %d\n", count);
}
count++;
scanf("%d", &score);
3
感谢
0
1
6666666666
加油坚持
1
看看
666
GEIWOKANGKANG!
daydaystudy
学习
100
0
c,b,a
c=9,b=5,a=14
z=x>0?x:-x
if (size > 12)
{
cost = cost * 1.05;
flag = 2;
}
else
{
bill = cost * flag;
}
if (ibex > 14)
{
sheds = 3;
}
else
{
sheds = 2;
help = 2 * sheds;
}
if (score < 0)
{
printf("count = %d\n", count);
}
else
{
count++;
scanf("%d", &score);
}
10;
;
{:5_91:}
1
{:5_106:}
为什么我模仿小甲鱼的方式,系统会提示超时
#include <stdio.h>
#define MONEY 10000
int main()
{
double a_total = MONEY, b_total = MONEY;
int count = 0;
do
{
a_total += a_total * 0.1;
b_total += b_total * 0.05;
count++;
}while(a_total >= b_total);
printf("%d年之后,黑夜的总投资额超越了小甲鱼!\n", count);
printf("小甲鱼的总投资为:%.2f\n", a_total);
printf("黑夜的总投资为:%.2f\n", b_total);
return 0;
}
看看