C++求一个闭区间内所有素数和 摘要:解题思路:注意事项:注意1不是素数,在判断是要注意参考代码:#include<iostream>using namespace std;bool check(int i)////用来检验一个数是否是素…… 题解列表 2022年11月04日 0 点赞 0 评论 269 浏览 评分:9.9
2908: 白细胞计数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main(){ int n; float num=0; …… 题解列表 2022年11月04日 0 点赞 0 评论 642 浏览 评分:6.4
解决python代码 EOFERROR 摘要:解题思路:注意事项:参考代码:n=int(input())a=[]b=Truewhile b: try: x=input() if x!='': …… 题解列表 2022年11月04日 0 点赞 0 评论 536 浏览 评分:8.0
题解 2906: 笨小猴 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int ZS(int n){ if(n<2) return 0;…… 题解列表 2022年11月04日 0 点赞 0 评论 246 浏览 评分:0.0
两种解法(sort和快速排序) 摘要:解题思路:第一种是利用c++内置函数sort,第二种是利用快速排序.(建议掌握第二种)注意事项:参考代码:第一种:第二种:#include<bits/stdc++.h> using namespac…… 题解列表 2022年11月04日 0 点赞 0 评论 248 浏览 评分:0.0
简单易懂,小白必看 摘要:#include<stdio.h>int main(){ int a[10],pjs=0,sum=0,num=0; for(int i=0;i<10;i++) { sc…… 题解列表 2022年11月04日 0 点赞 0 评论 202 浏览 评分:0.0
哥们哥们,投机来吗(有一点小问题) 摘要:解题思路:条件表达式注意事项:不要写错参考代码:#include<stdio.h>#define max(a,b) (a>b?a:b) #define min(a,b) (a<b?a:b)int ma…… 题解列表 2022年11月04日 0 点赞 0 评论 567 浏览 评分:6.0
1016一行解(Python) 摘要:注意事项:强行一行,实际编程意义不大参考代码:for i in range(100, 999) : print(i) if sum(map(lambda x : x ** 3, list(map(in…… 题解列表 2022年11月04日 0 点赞 1 评论 523 浏览 评分:9.9
1018递归解法(Python) 摘要:注意事项:只关注上、下两数的关系即可参考代码:N = int(input())output = 0times = 0def count_sum(up_data, down_data) : glo…… 题解列表 2022年11月04日 0 点赞 0 评论 187 浏览 评分:0.0
1367基础解法(Python) 摘要:注意事项:引用sys.stdin来获取输入参考代码:import syslst_tableware = ['fork','chopsticks','bowl&#…… 题解列表 2022年11月04日 0 点赞 0 评论 228 浏览 评分:0.0