The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 0 点赞 0 评论 140 浏览 评分:0.0
2791: 计算邮资 摘要:解题思路:注意事项:单字符用char,注意单个字符要用单引号括起来,字符串要用双引号。还要用ceil函数来解决大于1000克但小于一个500克的计数单位。参考代码:#include<bits/stdc…… 题解列表 2024年11月17日 0 点赞 0 评论 305 浏览 评分:9.9
C++ 计算器 模拟题 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月17日 0 点赞 0 评论 95 浏览 评分:0.0
[编程入门]筛选N以内的素数 摘要:解题思路:大于2的偶数都是合数,所以找的时候每次步进2。后面试除时只要除找到素数就行了注意事项:参考代码:#include <stdio.h> #include <stdlib.h> type…… 题解列表 2024年11月17日 1 点赞 0 评论 220 浏览 评分:0.0
1106: 奖学金 (二维数组) 摘要:解题思路:将所有信息存放至二维数组并依据总分,语文成绩降序排序,依据学号升序排序注意事项:参考代码:def scholarship_ranking(): # 读取学生数量 n = int(…… 题解列表 2024年11月17日 0 点赞 0 评论 431 浏览 评分:0.0
会1就看我这个,看我注释修改进行了 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int a[20]; int i, j, min, temp; for (i =…… 题解列表 2024年11月17日 0 点赞 0 评论 190 浏览 评分:9.9
编写题解 2797: 最高的分数 摘要: #include int main() { int n,a[100],k=0; scanf("%d", &n); for (int q …… 题解列表 2024年11月17日 1 点赞 0 评论 173 浏览 评分:10.0
编写题解 1084: 用筛法求之N内的素数 摘要: #include int main() { int n,c=0; scanf("%d",&n); //输入n for (in…… 题解列表 2024年11月16日 0 点赞 0 评论 264 浏览 评分:9.9
刷题是熟练的必经之路 摘要:解题思路:多看几遍就记住了注意事项:参考代码:#include<stdio.h>#include<stdbool.h>#include<math.h>bool judge(int n);int mai…… 题解列表 2024年11月16日 0 点赞 0 评论 170 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double y; int x; scanf ("%d",&x); if (x < 1) { y = x;…… 题解列表 2024年11月16日 0 点赞 0 评论 447 浏览 评分:0.0