题解 2771: 大象喝水 摘要:解题思路:首先输入高和半径,然后求体积,再用20L除以体积。注意事项:在这里pi=3.14159。参考代码:#include <bits/stdc++.h>using namespace std;in…… 题解列表 2023年11月25日 0 点赞 0 评论 375 浏览 评分:9.9
1018: [编程入门]有规律的数列求和(利用递归解决) 摘要:解题思路:首先声明一下,纯属是为了练习递归才这么写的,当时的第一想法是这与斐波那契数列类似,所以就想到用递归,分子分母从第三项开始就等于前两项的和,则fbnq(i)=fbnq2(i-1)+fbnq2(…… 题解列表 2023年11月25日 0 点赞 0 评论 309 浏览 评分:9.9
2990: 十进制到八进制 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[1000],cnt;int main(){ cin>>n; …… 题解列表 2023年11月25日 0 点赞 0 评论 411 浏览 评分:9.9
编写题解 2918: 成绩排序 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u { int k; string s…… 题解列表 2023年11月25日 0 点赞 0 评论 264 浏览 评分:9.9
整数序列的元素最大跨度值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int n,max,min; scanf("%d",&n); int a[n]; f…… 题解列表 2023年11月25日 0 点赞 0 评论 575 浏览 评分:9.9
奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int n,gold=0,silver=0,copper=0;scanf("%d",&n);int a[n][…… 题解列表 2023年11月25日 0 点赞 0 评论 695 浏览 评分:9.9
编写题解 2772: 苹果和虫子 摘要:解题思路:无注意事项:无参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double n,x,y; cin>>n>…… 题解列表 2023年11月26日 0 点赞 0 评论 409 浏览 评分:9.9
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>void yy(char a[],char b[]){ int i,j=0; for(i=…… 题解列表 2023年11月26日 0 点赞 0 评论 287 浏览 评分:9.9
大整数加法(C语言) 摘要:解题思路:定义两个字符串 s1 和 s2,用于存储输入的两个大整数。通过 scanf 从标准输入中读取两个字符串。计算两个字符串的长度 la 和 lb,以确定大整数的位数。初始化数组 a 和 b,用于…… 题解列表 2023年11月26日 1 点赞 0 评论 812 浏览 评分:9.9
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y,n; cin>>n>>x>>y; i…… 题解列表 2023年11月26日 0 点赞 0 评论 226 浏览 评分:9.9