二级C语言-计算素数和:注意 i<2 的情况 摘要: #include #include using namespace std; bool isprime(int x) { int co…… 题解列表 2023年03月21日 0 点赞 0 评论 168 浏览 评分:0.0
谁考了第K名(C语言)——输入时按分数排序再插入数组 摘要://使用C++文件,提交要用C++ #include#include#define N 500 struct S { char sid[N]; double score; }; int…… 题解列表 2023年03月22日 0 点赞 0 评论 204 浏览 评分:0.0
奇数单增序列——C和C++的STL相结合 摘要://提交代码时提交成C++语言即可 #include<stdio.h> #include<algorithm> using namespace std; #define N 500 int …… 题解列表 2023年03月22日 0 点赞 0 评论 133 浏览 评分:0.0
成绩排序——C语言 摘要://C语言融合部分c++头文件,提交格式为c++ #include<stdio.h> #include<string.h> #include<stdlib.h> struct S { ch…… 题解列表 2023年03月22日 0 点赞 0 评论 202 浏览 评分: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 评论 229 浏览 评分:0.0
编写题解 1102: 明明的随机数 摘要:解题思路: 先排序再去重注意事项:参考代码:#include<stdio.h> void Srot(int* arr, int len); void Deduplication(int* arr,…… 题解列表 2023年03月22日 0 点赞 0 评论 151 浏览 评分:0.0
蓝桥杯算法训练VIP-s01串 摘要:解题思路:注意事项:不能只用s一个字符串,会混淆参考代码:n = int(input())a = '0's = '0'for i in range(n): a =…… 题解列表 2023年03月22日 0 点赞 0 评论 201 浏览 评分: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 评论 189 浏览 评分:0.0
sort 和 二分 提一句 上面jcent的计数排序思路太秒了 很牛 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[100000];int m,n;//下面为二分模板 int search…… 题解列表 2023年03月22日 0 点赞 0 评论 261 浏览 评分:0.0
1315————田忌赛马(仿写题解) 摘要: import java.util.Scanner; import java.util.LinkedList; import java.util.Collections; …… 题解列表 2023年03月22日 0 点赞 0 评论 276 浏览 评分:0.0