首页
比赛
题库
课程
竞赛讨论区
登录
/
注册
去牛客
首页
>
牛牛学矩形
13条解析
开通博客写题解
张田懿
发表于 2020-12-09 19:11:03
include using namespace std;int main(){ int a,b; cin>>a>>b; cout<<(a+b)2<<endl; cout<<ab<<endl;}
金龙月轩寰语唐舞麟
发表于 2020-12-26 12:35:35
#include<bits/stdc++.h> using namespace std; int main() { int a,b,s,d; cin>>a>>b; d=(a+b)*2; s=a*b; cout<<d<
展开全文
潍坊鲨鱼公园儿童大学
发表于 2021-01-22 15:29:38
#include <iostream> using namespace std; int main() { int len; // 矩形长 int width; // 矩形宽 cin >> len >> width; int
展开全文
天元之弈
发表于 2022-01-16 12:31:30
传送门->https://ac.nowcoder.com/acm/problem/21998 my blog->https://blog.nowcoder.net/yanhaoyang2106 长方形周长: (a+b)/2 长方形面积: a x b #include<iostrea
展开全文
HUAYI_SUN
发表于 2022-09-29 13:17:42
#include<iostream> using namespace std; int main() { int a,b; cin>>a&g
展开全文
幼儿园杠把子。
发表于 2020-04-07 15:48:52
include using namespace std;int main(){ int a,b; cin>>a>>b; cout<<2(a+b)<<endl; cout<<ab; return 0;}
牛客216979817号
发表于 2025-05-28 11:38:51
import java.util.Scanner; public class Main{ public static void main(String []args){
展开全文
已注销
发表于 2021-02-02 13:49:53
#include<stdio.h> int main(){ int a,b; scanf("%d %d",&a,&b); printf("%d\n%d",2*(a+b),a*b); } Point: 转义应该是\而不是/ 2*(a+b) 的
展开全文
何雪莹何雪莹何雪莹
发表于 2021-07-15 21:00:22
include<bits/stdc++.h> using namespace std;int main(){ int a,b; cin>>a>>b; cout<<(a+b)2<<"\n"<<
展开全文
Ayx03
发表于 2022-02-26 19:03:21
#include<cstdio> int main() { short a,b; scanf("%hd%hd",&a,&b); printf("%hd\n%hd",2*a+2*b,a*b); }
查看本题
查看本题讨论
相关比赛
18163-阿尔法-C++习题课(2星)
进入比赛
18201-2021暑假准大一生编程练习1
进入比赛
18212-2021暑假准大一生编程练习一
进入比赛
18374-阿尔法-C++基础测试(1星)
进入比赛
18839-牛客竞赛语法入门班顺序结构习题
进入比赛
等你来战
查看全部
新疆大学2025年7月月赛(同步赛)
报名截止时间:2025-07-06 18:00
牛客周赛 Round 99
报名截止时间:2025-07-06 21:00
牛客练习赛142
报名截止时间:2025-07-11 21:30
2025年第一届上海师范大学程序设计竞赛(同步赛)
报名截止时间:2025-07-13 18:00
牛客周赛 Round 100
报名截止时间:2025-07-13 21:00
2025牛客暑期多校训练营1
报名截止时间:2025-07-15 17:00
2025牛客暑期多校训练营2
报名截止时间:2025-07-17 17:00
扫描二维码,关注牛客
意见反馈
下载牛客APP,随时随地刷题