1156:(题意误导,只有一个空格)两空格呢????? 摘要:#include <stdio.h>int jc(int i);int sss(int i);int main(){ int i,n,j,k,sum,r=1; int a[10]; for…… 题解列表 2025年02月13日 1 点赞 0 评论 397 浏览 评分:10.0
纯循环(一下标题太短,一下标题敏感,神经) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<string>using namespace std;int n; &…… 题解列表 2025年02月13日 0 点赞 0 评论 390 浏览 评分:10.0
1157: 亲和数(c语言解法) 摘要:解题思路:写一个函数计算约数之和#include <stdio.h>int sss(int i);int main(){ int m; scanf("%d",&…… 题解列表 2025年02月13日 1 点赞 0 评论 493 浏览 评分:10.0
高精度*浮点数 摘要:#include#include#includeusing namespace std;const int s = 1e5 + 10;int P = 2, n, a[s];…… 题解列表 2025年02月13日 0 点赞 0 评论 1225 浏览 评分:10.0
简单明了-成绩转换:if,switch、while 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(){inta,b,c,d…… 题解列表 2025年02月13日 0 点赞 0 评论 349 浏览 评分:10.0
[信息学奥赛一本通T1496-架设电话线] - 二分答案最短路 摘要:```cpp#include// #define int long long //memset数组为0x3f时自觉去掉#define INF 0x3f3f3f3f#define PII…… 题解列表 2025年02月14日 0 点赞 0 评论 364 浏览 评分:10.0
[信息学奥赛一本通T1501-最优贸易] - 最短路DP 摘要:####建立正反图,枚举每个点为终点,正图算出到这个点最小购入价格,反图算出到这个点最大卖出价格,枚举以每个点为终点两者相减的价格更新最大值```cpp#include// #define…… 题解列表 2025年02月14日 0 点赞 1 评论 294 浏览 评分:10.0
1169: 绝对值排序 摘要:#include<stdio.h>int main(){ int i,j,n,e; int a[100]; while(scanf("%d",&n)) { i…… 题解列表 2025年02月14日 2 点赞 0 评论 466 浏览 评分:10.0
1162: 密码(c语言解法,步骤简明,容易看懂) 摘要:#include <stdio.h>#include <math.h>#include <string.h>void pd(char a[50]);int main…… 题解列表 2025年02月14日 1 点赞 0 评论 360 浏览 评分:10.0
计算两点间距离:难点在于EOF错误输入的处理 摘要:解题思路:这一题逻辑上很简单,直接套公式就可以,但是难点在于这一题的测试数据中有一个很不标准的EOF输入,如果你用Python写很吃亏,因为input()输入不能直接处理该错误,建议加一个try-ex…… 题解列表 2025年02月15日 1 点赞 0 评论 539 浏览 评分:10.0