题解列表

筛选

编写题解 1204: 大小写转换

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[80]; int i=0,l; while(gets(a)) ……

编写题解 1180: 不容易系列

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void sum(int t){    int i;    int x=3;    for(i=1;i<=t;i++)    {    ……

题解 2997: 梯形面积

摘要:解题思路:先通过阴影三角形求高,再通过(上底+下底)*高/2求梯形面积注意事项:保留两位小数:print("%0.2f" %s)参考代码:h=150*2/15s=(15+25)*h/2print("%……

3040: An Easy Problem

摘要:解题思路:定义一个计数函数,从n+1开始循环,用计数函数扫描到的第一个数就是最小的。 要就复制吧,爱就点赞吧! *加五星好评*注意事项:从n+1开始循环!参考代码:#include<bits/st……

题解 2749: Hello, World!

摘要:解题思路:一条输出语句即可注意事项:注意逗号后面要打上一个空格参考代码:print("Hello, World!")……

A+B Problem(python)

摘要:解题思路:怎么同时输入多个数字 用map注意事项:参考代码: a,b=map(int,input().split())print(a+b)……

阶乘公式求职

摘要:解题思路:注意事项:参考代码:def fact(n):    s = 1    for i in range(1,n+1):        s*=i    return(s)n = int(input……

1765: 循环入门练习2

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