题解列表
编写题解 2779: 输出绝对值,python超简单
摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数'%.2f' % abs(N)……
c++ 找规律分奇数偶数
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
int a[10000],n;
ci……
小白看懂的C语言结构体
摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int……
1196: 去掉空格--容易理解
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){ int l=strlen(a); for(int i;……
1113: C语言考试练习题_保留字母
摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char a[100]; gets(a); int l=strlen(a……
python 计算多项式的值
摘要:解题思路:比较简单,仍用map函数注意事项:参考代码:x,a,b,c,d=map(float,input().split())print('%.7f'%(a*x*x*x+b*x*x+c……
数组从小到大排序后,从后向前遍历,不断更新众数及重数
摘要:解题思路:注意事项:参考代码:import java.util.*;
public class Main {
public static void main(String[] args……