题解 1223: 敲七游戏

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

敲七游戏C++(没对的进来)

摘要:解题思路:不对的99%都是漏了带有7的数字首先是7的倍数,n%7就可以得出;个位:只有7且恰好是7的倍数;十位:x7、7x(以下x均表示任意1-9)            x7可以求末尾就行n%10=……

敲七游戏 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){int num1(int m);int num2(int m); //函数声明 int num3(int m……

编写题解 1223: 敲七游戏

摘要:解题思路:注意事项:参考代码:n=int(input()) s=0 for i in range(7,n+1):     if i%7==0 or &#39;7&#39; in str(i): ……

敲七游戏 (Java代码)

摘要:解题思路:注意事项:参考代码: import java.util.Scanner; public class C1223 { public static void main(String[……

没啥亮点,正常思路..

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n,i,j,cnt=0;    scanf("%d",&n);    for(i=7;i<=n;……

敲七游戏 (C语言代码)

摘要:#include <stdio.h>int main(){     int i,j,N;     int count=0,flag=0;     scanf("%d",&N);     for(i=7……

敲七游戏 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){    int i,n,m,digit,count=0;    scanf("%d",&n);    f……

敲七游戏,统计于七有关的数的总数

摘要:解题思路:用for输出n以内的数,再拿每一个对7求余,符合条件则记一次。再用while循环统计不能用7整除,但是含有7的数注意事项:用while循环时,符号条件的记得跳出,不然一个数会记好几次;参考代……