题解列表

筛选

奥运奖牌计数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {int n,gold=0,silver=0,copper=0;scanf("%d",&n);int a[n][……

整数序列的元素最大跨度值

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {   int n,max,min;   scanf("%d",&n);   int a[n];       f……

字符串连接

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100];    char b[100];    int……

编写题解 2918: 成绩排序

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; struct u {     int k;     string s……

2990: 十进制到八进制

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int n,a[1000],cnt;int main(){    cin>>n; ……

1018: [编程入门]有规律的数列求和(利用递归解决)

解题思路:首先声明一下,纯属是为了练习递归才这么写的,当时的第一想法是这与斐波那契数列类似,所以就想到用递归,分子分母从第三项开始就等于前两项的和,则fbnq(i)=fbnq2(i-1)+fbnq2(i-2)注意事项:遇到除法要考虑数据类型参考代码:#include#include<

2991: 八进制到十进制

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[10000];int main(){   cin>>s;   int……