2247: 蓝桥杯算法提高-输出三个整数的最大数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long mymax(long long x,long long y,l…… 题解列表 2023年07月22日 0 点赞 0 评论 544 浏览 评分:0.0
苹果和虫子 摘要:```c #include int main() { int x,y,n,a; scanf("%d %d %d",&n,&x,&y); a=n-(y/x); …… 题解列表 2023年07月22日 0 点赞 0 评论 625 浏览 评分:2.0
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;long long gaosi(lon…… 题解列表 2023年07月22日 0 点赞 0 评论 633 浏览 评分:9.9
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long sum(long long n){ long long …… 题解列表 2023年07月22日 0 点赞 0 评论 430 浏览 评分:0.0
[编程基础]输入输出练习之浮点数专题 摘要:```c #include int main() { double a; scanf("%lf",&a); printf("%f\n%.5f\n%e\n%g",a,a,a,a)…… 题解列表 2023年07月22日 0 点赞 0 评论 563 浏览 评分:0.0
1810: [编程基础]输入输出练习之精度控制3 c语言 摘要:```c #include int main() { int b; char a; float c; double d; scanf("%c %d %f %lf",&a,&b…… 题解列表 2023年07月22日 0 点赞 2 评论 861 浏览 评分:6.0
3005: 糖果游戏 c语言 糖果游戏,注意第一个小朋友和最后一个小朋友的情况即可```c#includeintmain(){inta[6],b,c,d,f,a1,b1,c1,d1,f1;for(inti=0;i 题解列表 2023年07月22日 0 点赞 0 评论 781 浏览 评分:8.4
2836: 数组逆序重放(C语言) 摘要:###第一种 #include int main() { int n; scanf("%d",&n); int a[n]; for(int i=0;i=0;i-…… 题解列表 2023年07月22日 0 点赞 0 评论 545 浏览 评分:0.0
2880: 计算鞍点 摘要:解题思路:int main() { for(int i=1;i<=5;i++)//双重循环1 { for(int j=1;j<=5;j++)//双重循环2 …… 题解列表 2023年07月22日 0 点赞 0 评论 846 浏览 评分:9.9
Hello, World!的大小 摘要:解题思路:使用char定义字符串,直接使用sizeof()输出字符串的大小。注意事项:参考代码:#include<stdio.h>int main(){ char a[]="Hello, Worl…… 题解列表 2023年07月22日 2 点赞 0 评论 1465 浏览 评分:10.0