学习吧。。
学习吧。。
全部文章
题解
归档
标签
去牛客网
登录
/
注册
学习吧。。的博客
全部文章
/ 题解
(共21篇)
题解 | #获取三个数中的最大值(三元表达式实现)#
#include using namespace std; int main() { int a, b, c; cin >> a; cin >> b; cin >> c; // write your code here...... a=a>b?a:b; ...
C++
C
2022-01-04
3
535
题解 | #打印乘法表#
#include using namespace std; int main() { int n; cin >> n; // write your code here...... scanf("%d",n); if(n>=1 && n<=9)//判断输入是...
C++
C
2022-01-04
2
435
题解 | #规律数列求和#
#include using namespace std; int main() { long long n=0; long long s=0; // write your cde here...... for(int i=1;i<=10;i++){//十次循环 n=n*1...
C++
C
2022-01-04
1
482
题解 | #判断季节#
#include using namespace std; int main() { int month; cin >> month; // write your code here...... if(month>=1 && month<=12)//控制输...
C++
C
C++14
2022-01-03
1
459
题解 | #判断成绩等级#
#include using namespace std; int main() { int score; cin >> score; // write your code here...... if(score>=0 && score<=100){//大...
C++
C
2022-01-03
0
568
题解 | #计算商品打折结算金额#
#include using namespace std; int main() { double weight; double height; cin >> weight; cin >> height; double c=0; c=weight/(height*heig...
C++
C
2022-01-03
0
363
题解 | #计算商品打折结算金额#
//主要考察ifelse嵌套使用 #include #include using namespace std; int main() { double price; cin >> price; double cost = 0.0; if(price>0){//判断输入的数是否...
C++
C
计数
2022-01-02
5
635
题解 | #简单运算#
稍微笨法子:也可以添加哨兵在判断ab大小的时候 #include using namespace std; int main() { // write your code here...... int a,b; scanf("%d%d",&a,&b); if(a>b...
C++
C
2022-01-02
4
567
题解 | #两数求和#
这个没什么难得主要是控制一下a,b的范围即可 #include using namespace std; int main() { // write your code here...... int a,b,s=0; scanf("%d%d",&a,&b); if(a>...
C++
C
2022-01-02
2
551
题解 | #实现四舍五入#
#include using namespace std; 没什么难得 不要想的太复杂先判断输入的是正负数接下来就看程序吧 int main() { double d; cin >> d; int a; a=d; // write your code here...... if(a&...
C++
C
2022-01-01
3
675
首页
上一页
1
2
3
下一页
末页