题解列表

筛选

c语言代码解决问题

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

编写题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n ;    int sum=0 ;    ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n, i;    float p = 1, q = 2,sum=2.0,temp;    scan……

二级编程,分段函数,

摘要:解题思路:注意事项:记得加头文件,更改数据类型参考代码:#include<iostream>#include <cmath>//头文件,必加 #include <iomanip>//同上using n……

非常简单,小学生解法

摘要:解题思路:用一个数组来计算每个字母(52个字母)重复的,先写一个子函数求出n的阶乘,也就是没有字母重复时的排列总数,再用此排列总数依次除以每个字母重复的次数,就能求出最终的排列总数了注意事项:代码里面……

if解题,正常解法

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

c语言代码解决问题

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

2786: 判断能否被3、5、7整除(c语言解法)

摘要:解题思路:用if - else if - else 来写,括号里面配合&&和||来增加条件注意事项:只有if和else if后面可以加()写条件,else的后面不能加()写条件参考代码:#includ……