c语言代码解决问题 摘要:解题思路:注意事项:注意添加终止符参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101],str_friend[101]; …… 题解列表 2023年06月01日 0 点赞 0 评论 580 浏览 评分:0.0
编写题解 2921: 整数奇偶排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int i, j, a[100], j_n = 0, ou_n = 0; int ji[100], ou[10…… 题解列表 2023年06月01日 0 点赞 0 评论 586 浏览 评分:0.0
最大公约数与最小公倍数 解题思路:辗转相除法求最大公约数被除数除以除数,得到余数,余数成为下一轮的除数,则上一轮较小的除数成为这一轮的被除数,直至余数为0需要注意的是除数不可为0;最小公倍数:两数相乘的乘积除以最大公约数注意事项:参考代码:importjava.util.Scanner;publicclassMain1{pu 题解列表 2023年06月02日 0 点赞 0 评论 606 浏览 评分:0.0
组合数学题 解题思路:注意事项:参考代码:importsysread=lambda:int(sys.stdin.readline().strip())dpf={0:0,1:0}dph={0:0,1:0}defh(num,n):ifnumindph:returndph[num]n1=n-1i=(1<<(n1))-1 题解列表 2023年06月02日 0 点赞 0 评论 653 浏览 评分:0.0
C语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>struct student{ long int id; float score;};i…… 题解列表 2023年06月02日 0 点赞 0 评论 933 浏览 评分:0.0
二级C语言-同因查找 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; for(n=10;n<=1000;n++) { if(…… 题解列表 2023年06月02日 0 点赞 0 评论 482 浏览 评分:0.0
编写题解 2919: 奖学金 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { int id; int yw, sx, yy; int sum;};struct student a[…… 题解列表 2023年06月02日 0 点赞 0 评论 594 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,consume=0; char demand; scanf("%d %c",&m,…… 题解列表 2023年06月02日 0 点赞 0 评论 532 浏览 评分:0.0
编写题解 2920: 分数线划定 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct xs { int id; int mark;};struct xs x[5001];struct xs t;int mai…… 题解列表 2023年06月02日 0 点赞 0 评论 585 浏览 评分:0.0
#C++1745—— 继续畅通工程(带权并查集) 摘要:解题思路:找出有根节点的“家族”即还未畅通的“村庄群”,按权值排序后归并统计数量。注意事项:对于之前已经连接的道路,先预处理合并,再用cmp处理权值较小的边。AC代码:#include <iostre…… 题解列表 2023年06月02日 0 点赞 0 评论 823 浏览 评分:0.0