蓝桥杯2018年第九届真题-耐摔指数 摘要:解题思路:注意事项:参考代码:package dotcpp.二分;//x星球的居民脾气不太好,但好在他们生气的时候唯一的异常举动是:摔手机。//各大厂商也就纷纷推出各种耐摔型手机。x星球的质监局规定了…… 题解列表 2023年03月22日 0 点赞 0 评论 751 浏览 评分:9.9
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 评论 475 浏览 评分:0.0
通过队列queue简单求解汽水瓶问题 摘要:基本思路:顺着想,当手中空瓶数>=3时,每次给出去三个瓶子,收回来一个瓶子,注意特别讨论,空瓶数=2时,直接+1 ```cpp #include #include using namesp…… 题解列表 2023年03月22日 0 点赞 1 评论 455 浏览 评分:9.9
成绩排序——C语言 摘要://C语言融合部分c++头文件,提交格式为c++ #include<stdio.h> #include<string.h> #include<stdlib.h> struct S { ch…… 题解列表 2023年03月22日 0 点赞 0 评论 480 浏览 评分:0.0
奇数单增序列——C和C++的STL相结合 摘要://提交代码时提交成C++语言即可 #include<stdio.h> #include<algorithm> using namespace std; #define N 500 int …… 题解列表 2023年03月22日 0 点赞 0 评论 498 浏览 评分:0.0
谁考了第K名(C语言)——输入时按分数排序再插入数组 摘要://使用C++文件,提交要用C++ #include#include#define N 500 struct S { char sid[N]; double score; }; int…… 题解列表 2023年03月22日 0 点赞 0 评论 579 浏览 评分:0.0
谁拿了最多奖学金——C语言结构体 摘要:#include<stdio.h> #include<stdlib.h> struct S { char name[20]; int score; int total; char…… 题解列表 2023年03月22日 0 点赞 0 评论 441 浏览 评分:9.9
二级C语言-计算素数和:注意 i<2 的情况 摘要: #include #include using namespace std; bool isprime(int x) { int co…… 题解列表 2023年03月21日 0 点赞 0 评论 376 浏览 评分:0.0
简易版C语言代码 摘要:解题思路:注意事项:参考代码:int main() { int a = 0; for (a = 100; a < 1000; a++) { int b = a % 10; int …… 题解列表 2023年03月21日 0 点赞 0 评论 320 浏览 评分:0.0
错误探测——C语言 摘要://一直在打代码就没写注释,后续有空再补充#include<stdio.h> #define N 100 int num[N][N]; int main(void) { int n; s…… 题解列表 2023年03月21日 0 点赞 0 评论 339 浏览 评分:0.0