#include<stdio.h>
int main()
{
int a, q, w, e,z,x,c ,fangfa = 0;
scanf("%d", &a);
z = a / 5;
x = a / 2;
c = a / 1;
for (q = 1; q < z; q++)
{
for (w = 1; w < x; w++)
{
for (e = 1; e < c; e++)
{
if ((5 * q) + (2 * w) + (e * 1) == a)
fangfa++;
else
continue;
}
}
}
printf("%d", fangfa);
return 0;
}
0.0分
2 人评分
C二级辅导-阶乘数列 (C语言代码)浏览:583 |
The 3n + 1 problem (C语言代码)浏览:550 |
格式化数据输出 (C语言代码)浏览:882 |
输入输出格式练习 (C语言代码)浏览:883 |
买不到的数目 (C语言代码)浏览:3134 |
C语言训练-斐波纳契数列 (C语言代码)浏览:644 |
C语言程序设计教程(第三版)课后习题6.7 (C语言代码)浏览:527 |
Manchester-数字整除最原始易理解方法浏览:4633 |
Manchester- Hello, world!浏览:13280 |
Manchester- A+B for Input-Output Practice (IV)浏览:1178 |