编写题解 2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:n=int(input())sum=0for i in range(1,n+1): if i%7!=0 and i%10!=7 and i//10!=7: …… 题解列表 2024年03月04日 0 点赞 0 评论 273 浏览 评分:0.0
编写题解 2829: 数1的个数 摘要:解题思路:注意事项:参考代码:n=int(input())times=0for i in range (1,n+1): times+=str(i).count('1')print…… 题解列表 2024年03月04日 0 点赞 0 评论 274 浏览 评分:0.0
编写题解 2830: 数字统计 摘要:解题思路:注意事项:参考代码:l,r=map(int,input().split())times=0for i in range (l,r+1): times+=str(i).count(…… 题解列表 2024年03月04日 0 点赞 0 评论 256 浏览 评分:0.0
编写题解 2831: 画矩形 摘要:解题思路:注意事项:参考代码:h,w,c,flag=map(str,input().split())h=int(h)w=int(w)flag=int(flag)if flag==1: for i…… 题解列表 2024年03月04日 0 点赞 0 评论 196 浏览 评分:0.0
2046:输出全排列 摘要:解题思路:注意事项:printf代替cout可避免超时参考代码:#include<iostream>using namespace std;const int N=10;int num[N];bool…… 题解列表 2024年03月04日 0 点赞 0 评论 237 浏览 评分:0.0
最Easy的一集 摘要:这怎么好意思放在中等题???? ``` import java.util.Scanner; public class Main { public static void mai…… 题解列表 2024年03月04日 1 点赞 0 评论 316 浏览 评分:0.0
2798: 整数序列的元素最大跨度值 摘要:注意事项: 给max和min赋值时注意,一定要让这两个值有改动,否则记录的不是输入的值,max够小,min够大参考代码:#include<iostream> using namespace s…… 题解列表 2024年03月04日 0 点赞 0 评论 422 浏览 评分:0.0
编写题解 2832: 第n小的质数 摘要:解题思路:注意事项:参考代码:from math import sqrtimport mathn=int(input())c=[2]num=1while num<=n: for i in ran…… 题解列表 2024年03月04日 0 点赞 0 评论 243 浏览 评分:0.0
图的遍历-DFS深度优先搜索(C++) 摘要:#include<iostream> using namespace std; #define MAX_VERTEX_NUM 20 // 定义最大结点数 int graph[MAX_VERTEX…… 题解列表 2024年03月04日 0 点赞 0 评论 434 浏览 评分:0.0
简单易懂的解题思路 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,a[1000],x,y,k; scanf("%d",&n); for(i=0;…… 题解列表 2024年03月05日 0 点赞 0 评论 385 浏览 评分:0.0