1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; cin>>n; …… 题解列表 2024年03月30日 0 点赞 0 评论 253 浏览 评分:0.0
字典方法............... 摘要:解题思路:注意事项:参考代码:N,M = map(int,input().split()) dict1 = {i : i*0 for i in range(1,N+1)} dict2 = {i :…… 题解列表 2024年03月30日 0 点赞 0 评论 247 浏览 评分:0.0
题解 1234: 检查一个数是否为质数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; for(in…… 题解列表 2024年03月30日 0 点赞 0 评论 277 浏览 评分:9.9
2829: 数1的个数 摘要:解题思路:注意事项:致 别吃张博维giegie参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n,s…… 题解列表 2024年03月30日 0 点赞 0 评论 319 浏览 评分:9.9
题解 2813: 药房管理 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n,sum=0; cin>>m>>n; for(…… 题解列表 2024年03月30日 0 点赞 0 评论 251 浏览 评分:0.0
前缀和解法家人们 摘要:import java.util.*;public class Main{ static Scanner sc=new Scanner(System.in); public static void m…… 题解列表 2024年03月30日 0 点赞 0 评论 348 浏览 评分:0.0
题目 1051: [编程入门]结构体之成绩统计2 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int …… 题解列表 2024年03月30日 0 点赞 0 评论 200 浏览 评分:0.0
题目 1050: [编程入门]结构体之成绩记录 摘要:#include <stdio.h> // 定义学生结构体 typedef struct { char id[20]; char name[20]; int s…… 题解列表 2024年03月30日 0 点赞 0 评论 150 浏览 评分:0.0
[编程入门]完数的判断 摘要:解题思路:记录遍历中的每一个因子的和进行判断就行,遍历因子的时候为了减小时间复杂度,可以遍历到当前数的开平方,但是这时需要b.append(a//i)注意事项:a % i == 0时还得b.appen…… 题解列表 2024年03月30日 0 点赞 0 评论 751 浏览 评分:9.9
1014: [编程入门]阶乘求和 摘要:解题思路:数据量小,直接按照正常思路走就行参考代码:def jiecheng(i): jieguo=1 for j in range(1,i+1): jieguo*=j …… 题解列表 2024年03月30日 0 点赞 0 评论 426 浏览 评分:6.0