1710819070


私信TA

用户名:1710819070

访问量:15320

签 名:

好好学习

等  级
排  名 323
经  验 5301
参赛次数 6
文章发表 21
年  龄 0
在职情况 学生
学  校 贺州学院
专  业 软件工程

  自我简介:

1+1+1+1+1+1=田

解题思路:

注意事项:

参考代码:

#include<stdio.h>
#include<math.h>
int main()
{
/*
4张3分   3张5分
3 3 3 3 5 5 5
*/
int i=0,d=0;  //从0开始 ,有可能全用3分的或者全用5分的
for(i=0;i<=4;i++)
for(int j=0;j<=3;j++)
if(3*i+5*j!=0)
d++;
printf("%d\n",d);
return 0;
}


 

0.0分

5 人评分

看不懂代码?想转换其他语言的代码? 或者想问其他问题? 试试问问AI编程助手,随时响应你的问题:

编程语言转换万能编程问答  

代码解释器

代码纠错

SQL生成与解释

  评论区

#include <stdio.h>

int main()
{
    int a,b,c;
    for(a=0;a<=12;a+=3)
    {
	for(b=0;b<=15;b+=5)
    {
    	if(a+b>0)
    	c++;
	}
	}
    printf("%d\n",c);
    return 0;
}
2021-02-08 10:51:56
  • «
  • 1
  • »