题解列表
1852: 求1+2+3+...+n的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon……
1852: 求1+2+3+...+n的值
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){ long long ……
[编程基础]输入输出练习之浮点数专题
摘要:```c
#include
int main()
{
double a;
scanf("%lf",&a);
printf("%f\n%.5f\n%e\n%g",a,a,a,a)……
1810: [编程基础]输入输出练习之精度控制3 c语言
摘要:```c
#include
int main()
{
int b;
char a;
float c;
double d;
scanf("%c %d %f %lf",&a,&b……
3005: 糖果游戏 c语言
摘要:糖果游戏,注意第一个小朋友和最后一个小朋友的情况即可
```c
#include
int main()
{
int a[6],b,c,d,f,a1,b1,c1,d1,f1;
……
2836: 数组逆序重放(C语言)
摘要:###第一种
#include
int main()
{
int n;
scanf("%d",&n);
int a[n];
for(int i=0;i=0;i-……
2880: 计算鞍点
摘要:解题思路:int main()
{
for(int i=1;i<=5;i++)//双重循环1
{
for(int j=1;j<=5;j++)//双重循环2
……
Hello, World!的大小
摘要:解题思路:使用char定义字符串,直接使用sizeof()输出字符串的大小。注意事项:参考代码:#include<stdio.h>int main(){ char a[]="Hello, Worl……
2880: 计算鞍点
摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[100][100],n,sum=0;int main(){……