筛选N以内的素数 c++题解(简单易懂) 摘要:解题思路:先把范围内的素数标记再统计就可以了。 注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;long long n,a[100000…… 题解列表 2022年05月08日 0 点赞 0 评论 293 浏览 评分:0.0
选择排序 题解(c++sort水过) 摘要:解题思路:用sort排序简单水过。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[55];int main(){ for(in…… 题解列表 2022年05月08日 0 点赞 0 评论 334 浏览 评分:0.0
矩阵对角线求和 题解(c++) 摘要:解题思路:先输入,再直接输出。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[55][55];int main(){ for(…… 题解列表 2022年05月08日 0 点赞 0 评论 433 浏览 评分:0.0
数组插入处理 题解(sort简单易懂) 摘要:解题思路:这题就跟排序差不多,用sort就欧了。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[55];int main(){…… 题解列表 2022年05月08日 0 点赞 0 评论 321 浏览 评分:0.0
数字逆序输出 题解(简单)(c++) 摘要:解题思路:就是倒过来输出而已。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a[55];int main(){ for(int …… 题解列表 2022年05月08日 0 点赞 0 评论 361 浏览 评分:0.0
编写题解 2351: 信息学奥赛一本通T1439-传送带 摘要:#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<cstring> #inclu…… 题解列表 2022年05月08日 0 点赞 0 评论 651 浏览 评分:0.0
编写题解 1046: [编程入门]自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def yidong(): a = eval(input()) b = list(map(int,input().split())) c = e…… 题解列表 2022年05月08日 0 点赞 0 评论 417 浏览 评分:0.0
编写题解 1012: [编程入门]字符串分类统计 摘要:解题思路:注意事项:参考代码:a = 0b = 0c = 0d = 0e = input()for i in e: if i.isalpha(): a+=1 elif i.i…… 题解列表 2022年05月08日 0 点赞 0 评论 383 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转(利用切片解决) 摘要:解题思路:注意事项:参考代码:def main(): a = input() print(a[::-1])main()…… 题解列表 2022年05月08日 0 点赞 0 评论 458 浏览 评分:0.0
while循环求解 摘要:解题思路:求每一位数的3次方的和注意事项:由于输入的数被/10了3次,所有最后在比对的时候用的是一开始赋值的b参考代码:#include "stdio.h"#include "math.h"int m…… 题解列表 2022年05月08日 0 点赞 0 评论 442 浏览 评分:0.0