1106: 奖学金 (二维数组) 摘要:解题思路:将所有信息存放至二维数组并依据总分,语文成绩降序排序,依据学号升序排序注意事项:参考代码:def scholarship_ranking(): # 读取学生数量 n = int(…… 题解列表 2024年11月17日 0 点赞 0 评论 428 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type…… 题解列表 2024年11月17日 1 点赞 0 评论 218 浏览 评分:0.0
C++ 计算器 模拟题 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月17日 0 点赞 0 评论 95 浏览 评分:0.0
The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 0 点赞 0 评论 135 浏览 评分:0.0
加油啊大家 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int a, b, c, d, e, f, n = 1; while(n++…… 题解列表 2024年11月17日 0 点赞 0 评论 208 浏览 评分:0.0
非常简洁易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int factor_sum(int n); int main(void) { int i, sum1,sum2; …… 题解列表 2024年11月17日 1 点赞 0 评论 263 浏览 评分:0.0
多动脑子,简化代码 摘要:解题思路:注意事项:参考代码://机器思维太单一 #include<stdio.h> #include<stdbool.h> #include<string.h>//strlen好用 bool…… 题解列表 2024年11月17日 0 点赞 0 评论 222 浏览 评分:0.0
人类思维与机器思维的对比 摘要:解题思路:多学数学吧注意事项:参考代码://尼科彻斯定理 //机器思维 #include<stdio.h> #include<math.h> #include<string.h> void …… 题解列表 2024年11月17日 2 点赞 0 评论 237 浏览 评分:0.0
编写题解 1099: 校门外的树(C语言) 摘要:解题思路:把路设为有路长+1的元素的数组,初始化为0代表有树,把后续的坐标当做数组的序号,坐标范围内的赋值1代表没树,最后统计0的数目即可。注意事项:参考代码:#include <stdio.h> …… 题解列表 2024年11月17日 0 点赞 0 评论 606 浏览 评分:0.0
比较简单的题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=1;i<40;i++) { if((i%2)!…… 题解列表 2024年11月17日 0 点赞 0 评论 209 浏览 评分:0.0