连续出现的字符 看一下题 想一下想 一遍过 这种思想要掌握 摘要:解题思路:遍历该位置后面n个字符注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; string s;//字…… 题解列表 2023年02月15日 0 点赞 0 评论 628 浏览 评分:9.9
编写题解 1196: 去掉空格 摘要:解题思路:注意事项:参考代码:while True: try: list1 = input().split() for i in list1: …… 题解列表 2023年02月15日 0 点赞 0 评论 797 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 ##解题思路首先,了解下素数素数是指在大于1的自然数中,除了1和它本身以外不再有其他因数的自然数。(即只有1跟它本身能整除掉这个数)据此,我们可以想到**遍数法**(用循环从1开始历遍)。~~貌似有点蠢~~所以我想到了一道俺初中侄子数学证明题, 题解列表 2023年02月15日 0 点赞 0 评论 590 浏览 评分:9.9
2359: 信息学奥赛一本通T1448-电路维修 ```cpp#include#include#includeusingnamespacestd;typedefintll;charmp[1002][1002];boolvis[1002][1002];llR,C,flag=0,cx[4]={-1, 题解列表 2023年02月15日 0 点赞 0 评论 736 浏览 评分:9.9
2330: 信息学奥赛一本通T1178-成绩排序 ```cpp#include#includeusingnamespacestd;typedefstructstudent{charm[20];intg;}S;boolcmp(Sx1,Sx2){if(x1.g==x2.g)for(inti=0;ix2.m[i])returnfalse;elseif(x1 题解列表 2023年02月15日 0 点赞 0 评论 1197 浏览 评分:9.9
1015: [编程入门]求和训练 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split())a1,b1,c1=0,0,0for i in range(a+1): a1+=ifor j in ran…… 题解列表 2023年02月15日 0 点赞 0 评论 423 浏览 评分:0.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:while True: n=int(input()) l=[1,2,3] if n==0: break else: f…… 题解列表 2023年02月15日 0 点赞 0 评论 690 浏览 评分:9.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:sum=0t=1num=int(input())for i in range(1,num+1): t=t*i sum+=tprint(sum)…… 题解列表 2023年02月15日 0 点赞 0 评论 440 浏览 评分:0.0
蓝桥杯2018年第九届真题-防御力 摘要:解题思路:注意事项:参考代码:n1,n2=map(int,input().split()) lsA=list(map(int,input().split())) copy_lsA=[_ for _…… 题解列表 2023年02月15日 0 点赞 0 评论 628 浏览 评分:9.9
日期排序 冒泡排序加结构体 摘要:解题思路:注意事项:输出时%02d补齐0,否则左侧只会输出2不会输出02参考代码:#include<stdio.h>struct date{ int y; int m; int d;…… 题解列表 2023年02月15日 1 点赞 0 评论 651 浏览 评分:0.0