题解列表

筛选

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,a[20], b[20],i,j,k,sum=0;    while (scanf("%d",……

c语言代码解决问题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n, i, j,a[1000],sum=1,max_sum=1,max_num;    scanf……

c语言代码解决问题

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

[编程入门]阶乘求和

摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    long long n,Sn=1,a=1;    cin>>n;    f……

2832: 第n小的质数

摘要:解题思路:注意事项:参考代码:def isPrime(su):    if su==2:        return true    if su%2==0:        return False  ……

二级C语言-平均值计算

摘要:参考代码:#include <bits/stdc++.h>using namespace std;int main(int argc, char** argv) {    int a,b,c,d,e,……

编写题解 2824: 求出e的值

摘要:解题思路:注意事项:参考代码:n=int(input())a=1b=1for i in range(1,n+1):  a=a*i  c=1/a  b=b+c  e=b  print(f&#39;{e:……

自定义函数之字符串连接

摘要:解题思路:可以直接使用strcat函数来实现连接功能注意事项:注意gets函数要使用两次参考代码:#include<stdio.h>#include<string.h>int main(){    c……