Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
330939 | 路明泽 | 【C1-3】矩形的面积与周长 | C++ | 解答错误 | 0 | 1 MS | 188 KB | 264 | 2025-07-11 12:54:36 |
#include <stdio.h> int main() { double length, width; scanf("%lf %lf", &length, &width); double perimeter = 2 * (length + width); double area = length * width; printf("%.2lf\n%.2lf\n", perimeter, area); return 0; }