题解列表
3004: 成绩(c++代码)
摘要:最后的输出结果要是整型才能通过哦!
```cpp
#include
using namespace std;
int main()
{
int a,b,c;
cin>>a……
二级C语言-平均值计算(水题)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[11],i,cnt=0,sum=0; double average; for(i=0;i<10;i……
二级C语言-最小绝对值(水题)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int i,a[100],min,t,index; for(i=……
1320: 字符串展开
摘要:```cpp
#include
#include
using namespace std;
int p1,p2,p3,sub_s,ji=1;
string s,s1,s_j;
bool f……
1267: A+B Problem
摘要:```cpp
#include
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout……
2783: 判断是否为两位数
摘要:```cpp
#include
using namespace std;
int main()
{
int n;
cin>>n;
if(n/100%10==0&&……
1019: [编程入门]自由下落的距离计算-简单易懂
摘要:
```**
m,n=map(int,input().strip().split()) # m米 n次时
sum = m #……
自定义函数处理最大公约数与最小公倍数 【10行代码 简单易懂】(有解释)
摘要:整体代码答案:
```python
a,b=map(int,input().strip().split())
def gcd(a,b):
if(b!=0):
retu……
python版本题解
摘要:解题思路:条件判断注意事项:这里自己写了一个四舍五入,直接用int也一样参考代码:s = int(input())def round(x): x = str(x) if x[x.index……