编写题解 2920: 分数线划定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xs { int id; int mark;};struct xs x[5001];struct xs t;int mai…… 题解列表 2023年06月02日 0 点赞 0 评论 374 浏览 评分:0.0
#C++1745—— 继续畅通工程(带权并查集) 摘要:解题思路:找出有根节点的“家族”即还未畅通的“村庄群”,按权值排序后归并统计数量。注意事项:对于之前已经连接的道路,先预处理合并,再用cmp处理权值较小的边。AC代码:#include <iostre…… 题解列表 2023年06月02日 0 点赞 0 评论 454 浏览 评分:0.0
不与最大值相同的数字之和 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc = n…… 题解列表 2023年06月03日 0 点赞 0 评论 550 浏览 评分:0.0
2767: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double f,a,b,c,d…… 题解列表 2023年06月03日 0 点赞 0 评论 320 浏览 评分:0.0
[编程入门]宏定义的练习 摘要://a b两个数 #include<stdio.h> #define sum a%b int main(){ int a,b; scanf("%d%d",&a,&b); …… 题解列表 2023年06月03日 0 点赞 0 评论 303 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, a[3001],i,b[3001],k=0,j; sc…… 题解列表 2023年06月03日 0 点赞 0 评论 387 浏览 评分:0.0
带余除法(C++解法) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<a/b…… 题解列表 2023年06月03日 0 点赞 0 评论 412 浏览 评分:0.0
三角形判断 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c…… 题解列表 2023年06月03日 0 点赞 0 评论 362 浏览 评分:0.0
模拟计算器 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,b; char c; …… 题解列表 2023年06月03日 0 点赞 0 评论 311 浏览 评分:0.0
printf基础练习2 摘要:解题思路:八进制以0开头十六进制以0x开头注意事项:注意前缀和数值之间的空格参考代码:/*输出这个整数的八进制、十进制和十六进制,三个数字用空格分开,最后一个有换行不要忘记八进制和十六进制的前缀哦~*…… 题解列表 2023年06月03日 1 点赞 0 评论 765 浏览 评分:0.0