又是输出格式的问题 摘要:解题思路:注意事项:答案之间不能有空格,不能直接用逗号参考代码:a,b=map(int,input().strip().split())c=(a+b)*2s=a*bprint("C:%d"%c)pri…… 题解列表 2022年05月13日 0 点赞 0 评论 1116 浏览 评分:9.9
1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a,b;int main(){ cin>>a>>b; cout<…… 题解列表 2022年05月05日 0 点赞 0 评论 432 浏览 评分:0.0
求长方形面积 摘要:解题思路:首先,我们都知道长方形的周长和面积,周长:(a+b)*2,面积:a*b。注意事项:c:和S:要双引号参考代码:#include<iostream>using namespace std;in…… 题解列表 2022年04月27日 0 点赞 1 评论 1084 浏览 评分:8.7
求解长方形面积 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2022年04月25日 0 点赞 0 评论 511 浏览 评分:0.0
编写题解 1952: 求长方形面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int A,B; scanf("%d %d",&A,&B); printf("C:%d\n…… 题解列表 2022年04月06日 0 点赞 0 评论 690 浏览 评分:0.0
求长方形面积 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float A,B,C,S; scanf("%f%f",&A,&B); C=2*(A+B); …… 题解列表 2022年04月05日 0 点赞 0 评论 807 浏览 评分:6.0
求长方形面积 摘要:#include<stdio.h>/*(长+宽)*2=周长 长*宽=面积*/int main(){int c,k;//定义长方形长变量为c,宽为变量kint C=0,S=0;//定义周长变量为C和…… 题解列表 2022年02月25日 0 点赞 2 评论 1323 浏览 评分:9.9
求长方形面积题解 摘要:解题思路:easy注意事项:参考代码:#include<stdio.h>int main(){ int a,b; scanf("%d%d",&a,&b); printf("C:%d\nS:%d\…… 题解列表 2022年01月25日 0 点赞 0 评论 534 浏览 评分:0.0
求长方形正方形的面积和周长 摘要:解题思路:通过公式求解注意事项:基本知识的应用参考代码:#include<stdio.h>int main(){ int a,b,C,S; scanf("%d%d",&a,&b); C=2*a+2*b…… 题解列表 2021年11月02日 0 点赞 0 评论 881 浏览 评分:0.0
1952 C语言 666 good 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int C,S, a,b; scanf("%d %d",&a,&b); C=(a+b)*2;S=a*b…… 题解列表 2021年11月01日 0 点赞 0 评论 523 浏览 评分:0.0