2828: 与7无关的数 摘要:``` #include using namespace std; int n,sum,ans; int main(){ cin>>n; for( int i=1;i…… 题解列表 2023年11月20日 0 点赞 0 评论 125 浏览 评分:0.0
与7无关的数(自定义函数) 摘要:参考代码: ```c #include int m(int a)//这个函数是判断它的十进制表示法中某一位上的数字是否为7,感觉放在主函数太挤了,干脆拿出来了 { int b=a,k…… 题解列表 2023年09月13日 0 点赞 0 评论 186 浏览 评分:0.0
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h> int main(){ int n,num=0 ; int i; int sum=0; int …… 题解列表 2023年02月13日 0 点赞 0 评论 270 浏览 评分:0.0
(c语言)详细解读 摘要:解题思路:注意事项:参考代码: #include"stdio.h"void main(){ int s7[100]={}; //不是与7有关的记录在…… 题解列表 2023年01月03日 0 点赞 0 评论 206 浏览 评分:0.0
题解 2828: 与7无关的数 摘要: #include using namespace std; int main(){ int a,sum,ans=0; cin>>a; …… 题解列表 2023年11月21日 0 点赞 0 评论 250 浏览 评分:7.3
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ int n; cin >…… 题解列表 2024年10月31日 0 点赞 0 评论 173 浏览 评分:7.3
编写题解 2828: 与7无关的数(c语言 摘要:解题思路:一个正整数,如果它能被7整除,或者它的十进制表示法中某一位上的数字为7,则称其为与7相关的数。现求所有小于等于n(n < 100)的与7无关的正整数的平方和。注意事项:①不能被7整除 …… 题解列表 2022年11月17日 0 点赞 2 评论 858 浏览 评分:8.0
第一!!!!!!! 摘要:解题思路:注意事项:参考代码:n=int(input())sum=0for temp in range(1,n+1): flag=1 if temp%7==0: contin…… 题解列表 2023年12月14日 0 点赞 0 评论 203 浏览 评分:9.9
java--study||O.o 摘要:参考代码:import java.util.Scanner; public class Main { public static void main(String[] args) …… 题解列表 2024年01月14日 0 点赞 0 评论 470 浏览 评分:9.9
与7无关的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,t=0,s=0; scanf("%d",&n); for(int i=1;i<=…… 题解列表 2023年07月30日 0 点赞 2 评论 489 浏览 评分:9.9