会1就看我这个,看我注释修改进行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[20]; int i, j, min, temp; for (i =…… 题解列表 2024年11月17日 0 点赞 0 评论 321 浏览 评分:9.9
1106: 奖学金 (二维数组) 摘要:解题思路:将所有信息存放至二维数组并依据总分,语文成绩降序排序,依据学号升序排序注意事项:参考代码:def scholarship_ranking(): # 读取学生数量 n = int(…… 题解列表 2024年11月17日 0 点赞 0 评论 571 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type…… 题解列表 2024年11月17日 1 点赞 0 评论 320 浏览 评分:0.0
C++ 计算器 模拟题 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月17日 0 点赞 0 评论 183 浏览 评分:0.0
2791: 计算邮资 摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc…… 题解列表 2024年11月17日 0 点赞 0 评论 535 浏览 评分:9.9
The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 246 浏览 评分:0.0
加油啊大家 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int a, b, c, d, e, f, n = 1; while(n++…… 题解列表 2024年11月17日 0 点赞 0 评论 304 浏览 评分:10.0
非常简洁易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int factor_sum(int n); int main(void) { int i, sum1,sum2; …… 题解列表 2024年11月17日 1 点赞 0 评论 354 浏览 评分:0.0
多动脑子,简化代码 摘要:解题思路:注意事项:参考代码://机器思维太单一 #include<stdio.h> #include<stdbool.h> #include<string.h>//strlen好用 bool…… 题解列表 2024年11月17日 0 点赞 0 评论 342 浏览 评分:0.0
超级简略版 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a=15,b=25,h,y=150; float m; h=y*2/a; m=(a+b)*h/2.0…… 题解列表 2024年11月17日 1 点赞 0 评论 816 浏览 评分:9.9