第五届真题-斐波那契 摘要:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){ long long n, m, p; scanf("%lld%lld%lld",…… 题解列表 2022年08月03日 0 点赞 1 评论 595 浏览 评分:9.9
#C++1227——日期排序(结构体,sort) 摘要:参考代码:#include<iostream> #include <algorithm> #include <iomanip> using namespace std; typedef str…… 题解列表 2022年08月04日 0 点赞 0 评论 654 浏览 评分:9.9
[编程入门]自定义函数处理最大公约数与最小公倍数(c++版) 摘要:参考代码:#include<iostream>using namespace std;int zd(int a,int b){ int r; while(r=a%b) { …… 题解列表 2022年08月04日 0 点赞 0 评论 533 浏览 评分:9.9
[编程入门]自定义函数求一元二次方程 摘要:参考代码:#include<iostream>#include<iomanip>#include<cmath>using namespace std;double x1,x2,a,b,c,z;void…… 题解列表 2022年08月04日 0 点赞 0 评论 468 浏览 评分:9.9
[编程入门]自定义函数处理素数 摘要:注意事项:本题很容易超时,用cmath库里的sqrt函数来求循环终止数可以避免超时以下为c++代码参考代码:#include<iostream>#include<cmath>using namespa…… 题解列表 2022年08月04日 0 点赞 0 评论 386 浏览 评分:9.9
蓝桥杯基础练习VIP-分解质因数 摘要:解题思路:这个思路比较简单注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,j,n; scanf("%d%d",&a,&b); for(i=a;i<=b…… 题解列表 2022年08月04日 0 点赞 0 评论 438 浏览 评分:9.9
1739: 成绩排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> struct stu{ char name[101]; int age;…… 题解列表 2022年08月04日 0 点赞 0 评论 599 浏览 评分:9.9
字符格式化 摘要:解题思路:。。。。。。。。注意事项:。。。。。。。。。参考代码:n=int(input()) print(format(int(oct(n),8),'o'))…… 题解列表 2022年08月05日 0 点赞 0 评论 541 浏览 评分:9.9
温度转换,两行 摘要:解题思路:。。。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:f=int(input()) print('{:.2f}'.format(5/9*(f-…… 题解列表 2022年08月05日 0 点赞 0 评论 617 浏览 评分:9.9
凑个数。。。。。 摘要:解题思路:。。。。。。。。。。。。。。。注意事项:。。。。。。。。。。。。。。。参考代码:x = float(input()) if x < 1: y = x elif x >= 1 an…… 题解列表 2022年08月05日 0 点赞 0 评论 457 浏览 评分:9.9