题解列表

筛选

编写题解 2764: 带余除法

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

Hello, World!(C++)

摘要:#include<iostream>using namespace std;int main(){   cout<<"Hello, World!"<<endl;    return 0;}……

 编写题解 1098: 陶陶摘苹果

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i,a[10];    for(i=0;i<10;i++)    {        scanf("……

1002:[编程入门]三个数最大值

摘要:解题思路: o=(a+b+abs(a-b))/2; nums=(o+c+abs(o-c))/2;求最值的式子,熟练了也可以用于数组求最值注意事项:一定要说注意的地方在哪的话,定义的数据类型算一个吧,l……

自定义函数之字符串连接

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

编写题解 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:……

二级C语言-平均值计算

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

2832: 第n小的质数

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