编写题解 1209: 密码截获 摘要:解题思路:注意事项:参考代码:while True: try: st=input() ts=st[::-1] s=[] &n 题解列表 2022年04月08日 0 点赞 0 评论 413 浏览 评分:0.0
用筛法求之N内的素数 摘要:解题思路:注意事项:参考代码://用筛法求之N内的素数#include<stdio.h>int main(){ int n; int a[1001]; scanf("%d",&n); for(int …… 题解列表 2022年04月08日 0 点赞 0 评论 444 浏览 评分:0.0
题目 1093: 字符逆序 摘要:解题思路:①将输入的字符串生成列表②用reverse进行翻转③输出字符注意事项:输出为一行参考代码:li=list(str(input()))if len(li)<=100: li.reverse()…… 题解列表 2022年04月08日 0 点赞 0 评论 315 浏览 评分:0.0
拓扑排序qaqaq 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> //就是一个字符串关系型的拓扑排序 using namespace std; struct node{ int…… 题解列表 2022年04月08日 0 点赞 0 评论 451 浏览 评分:0.0
优质题解 3种方法+从简到繁 完成 排列 摘要:解题思路:1.暴力法:使用一个数组存输入的4个数,每次去掉其中一个;然后对于剩余3个数,使用2个for循环选择前2个, 最后一个则等于6-i-j-k (考虑互不相等,i、j、k 最大为 3、2、1 …… 题解列表 2022年04月08日 0 点赞 1 评论 2323 浏览 评分:9.9
编写题解 1058: 二级C语言-求偶数和 摘要:解题思路:优化步骤,在输入的时候同时判断是否为偶数注意事项:注意数组定义的时间和位置参考代码:#include <stdio.h>int main(){ int k,x = 0; scanf("%d"…… 题解列表 2022年04月08日 0 点赞 0 评论 659 浏览 评分:9.9
蓝桥杯2021年第十二届省赛真题-杨辉三角形(JAVA题解) 摘要:解题思路:思维+二分搜索注意事项:必须用二分搜索,否则只能得90分。。。参考代码:import java.util.*; import java.io.*; // https://www.do…… 题解列表 2022年04月08日 0 点赞 0 评论 1169 浏览 评分:3.3
就是nb,不会速来看 摘要:解题思路:注意事项:参考代码:n = int(input())sum_1 = 0t = 0for i in range(10000,999999): i = str(i) p = i …… 题解列表 2022年04月08日 0 点赞 0 评论 362 浏览 评分:0.0
1951:求平方和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%d%d",&a,&b);c=a*a+b*b;printf("%d",c);re…… 题解列表 2022年04月08日 0 点赞 0 评论 370 浏览 评分:0.0
全球变暖BFS 摘要: 宽搜解法 #include #include #include using namespace std; const int N …… 题解列表 2022年04月08日 0 点赞 0 评论 499 浏览 评分:9.9