1 条题解
-
0
【例4.2】 天安门广场的面积
解题思路
矩形面积为长乘宽,计算 880×500。
正确性说明
由矩形面积公式,乘积就是平方米数。
易错点
没有输入,不输出单位文字。
复杂度
本题规模固定,时间 O(1),额外空间 O(1)。
参考代码(C++11)
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << 880 * 500 << "\n"; return 0; }
- 1