题解 1223: 敲七游戏

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

筛选

编写题解 1223: 敲七游戏

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

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

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

编写题解 1223: 敲七游戏

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

敲七游戏 (C语言代码)

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

敲七游戏 (C语言代码)

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