谁考了第K名(C语言)——输入时按分数排序再插入数组 摘要://使用C++文件,提交要用C++ #include#include#define N 500 struct S { char sid[N]; double score; }; int…… 题解列表 2023年03月22日 0 点赞 0 评论 349 浏览 评分:0.0
奇数单增序列——C和C++的STL相结合 摘要://提交代码时提交成C++语言即可 #include<stdio.h> #include<algorithm> using namespace std; #define N 500 int …… 题解列表 2023年03月22日 0 点赞 0 评论 269 浏览 评分:0.0
成绩排序——C语言 摘要://C语言融合部分c++头文件,提交格式为c++ #include<stdio.h> #include<string.h> #include<stdlib.h> struct S { ch…… 题解列表 2023年03月22日 0 点赞 0 评论 313 浏览 评分:0.0
python format格式化输出 摘要:n=int(input())a=[]sum=0for i in range(n): a.append(int(input())) sum+=a[i]print(max(a))print(m…… 题解列表 2023年03月22日 0 点赞 0 评论 349 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路: 先排序再去重注意事项:参考代码:#include<stdio.h> void Srot(int* arr, int len); void Deduplication(int* arr,…… 题解列表 2023年03月22日 0 点赞 0 评论 263 浏览 评分:0.0
蓝桥杯算法训练VIP-s01串 摘要:解题思路:注意事项:不能只用s一个字符串,会混淆参考代码:n = int(input())a = '0's = '0'for i in range(n): a =…… 题解列表 2023年03月22日 0 点赞 0 评论 342 浏览 评分:0.0
巧用python datetime包解决以及打表输出ABABBABA型 摘要:解题思路:注意事项:参考代码:from datetime import datetime,timedeltan=input()a=int(n[:4])b=int(n[4]+n[5])c=int(n[6…… 题解列表 2023年03月22日 0 点赞 0 评论 350 浏览 评分:0.0
sort 和 二分 提一句 上面jcent的计数排序思路太秒了 很牛 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int m,n;//下面为二分模板 int search…… 题解列表 2023年03月22日 0 点赞 0 评论 392 浏览 评分:0.0
1315————田忌赛马(仿写题解) 摘要: import java.util.Scanner; import java.util.LinkedList; import java.util.Collections; …… 题解列表 2023年03月22日 0 点赞 0 评论 405 浏览 评分:0.0
字符串分类统计C++ 摘要:解题思路:采用for循环输入,用gets而不用cin可以 输入空格注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ in…… 题解列表 2023年03月22日 0 点赞 0 评论 302 浏览 评分:0.0