Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
95146 程诺 05求长方形的周长和面积 C++ Accepted 1 MS 276 KB 382 2024-10-27 08:42:16

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ /**cout<<17/3<<endl; cout<<18.0/4<<endl; cout<<-17/3<<endl; cout<<17%3<<endl; cout<<-17%4<<endl; cout<<4567%100; int a = 2,b = 3,c = 4; cout<<a*b+c<<endl; cout<<a*(b+c)<<endl; cout<<(1+b)*c<<endl; cout<<a*a*b*b; **/ int N,M; cin>>N; cin>>M; cout<<(N+M)*2<<" "<<N*M; return 0; }