题解列表

筛选

2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int sum = 0, j, a, b, c, i;    char d;    scanf("%d……

小白,看看就行,不动脑袋

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){    int k, n;    dou……

2828: 与7无关的数

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

3行解决,使用count计数函数

摘要:解题思路:用count函数读取空格数量,再存入变量b,在加1完成注意事项:参考代码:# 1505a = input()b = a.count(" ",0,len(a)) + 1print(b)……

c语言中双精度绝对值的函数

摘要:解题思路:计算浮点型绝对值使用fabs函数,原型:double fabs(double x)计算整数绝对值使用abs函数,原型:int abs(int x)计算长整型绝对值使用labs函数,原型:lo……

c语言中如何使用倍数(exp版)

摘要:解题思路:注意事项:使用倍数要使用math头文件本人在答案里使用了exp(x)意思是e的x倍数,p是大家常用pow的意思,负数前面加个-就可以了,注意使用scanf参考代码:#include<stdi……

1099: 校门外的树

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