2095-通分 有看不懂得自己去学 摘要:import java.math.BigDecimal;import java.util.Scanner;public class Main{ public static void main(S…… 题解列表 2023年10月27日 0 点赞 0 评论 239 浏览 评分:6.0
简单易懂哦 摘要:注意事项:使用了cmath数学常用库参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ float n, x, …… 题解列表 2023年10月27日 0 点赞 0 评论 504 浏览 评分:9.9
第一次写题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int h,m,t; t==60*m==3600*h; scanf("%d",&t); h=t/3600; t=t…… 题解列表 2023年10月27日 1 点赞 0 评论 212 浏览 评分:9.9
汪汪与打针(乐,爱打狂犬疫苗是吧) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,i=0;//i是打的疫苗数 while(~scanf("%d%d",&a,&b)…… 题解列表 2023年10月27日 0 点赞 0 评论 153 浏览 评分:0.0
优质题解 C++用数组解决邮票组合问题 摘要:解题思路1.首先计算所有可能的值2.将数值放入vector函数中3.去掉“0”这个无效数值4.遍历去掉数组中重复的值5.用size计算剩余的长度(即种类的统计)注意事项:谨防vector内存溢出小心指…… 题解列表 2023年10月27日 0 点赞 4 评论 670 浏览 评分:9.9
玉龙学长买雪糕 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int sum=1; int a=1; while(n>1)…… 题解列表 2023年10月27日 0 点赞 0 评论 304 浏览 评分:0.0
字符串移位包含问题(又是数组空间不够变答案错误,记得设100以上) 摘要:解题思路: 两个字符串s1,s2先判断谁的长,将长的字符串将自身复制两次,组成一个新的字符串,如果可以通过题目给的移位方式得到s1是s2的子串,或s2是s1的子串,则短的字符串必定为这个新的字符串的…… 题解列表 2023年10月27日 1 点赞 0 评论 285 浏览 评分:9.9
fgets出现50分的原因 摘要:注意事项:fgets遇到'\n'结束,并且要接收'\n'。也就是说字符串最后一位为'\n'。当有换行符时,就要选择结束流程,不然会在other处多加一,…… 题解列表 2023年10月26日 0 点赞 0 评论 142 浏览 评分:0.0
Sn的公式求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sn=0; int t = 0; scanf("%d", &n); for (int i = 1;…… 题解列表 2023年10月26日 0 点赞 0 评论 155 浏览 评分:0.0
2226: 蓝桥杯算法训练-排序 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<bits/stdc++.h> using namespace std; int main() { …… 题解列表 2023年10月26日 0 点赞 0 评论 151 浏览 评分:0.0