Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
330951 | 路明泽 | 【C1-5】时间 | C++ | 通过 | 100 | 5 MS | 184 KB | 472 | 2025-07-11 13:02:54 |
#include <stdio.h> int main() { int a, b, c; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); int hours_in_seconds = a * 3600; int minutes_in_seconds = b * 60; int seconds = c; int total_seconds = hours_in_seconds + minutes_in_seconds + seconds; printf("%d\n", hours_in_seconds); printf("%d\n", minutes_in_seconds); printf("%d\n", seconds); printf("%d\n", total_seconds); return 0; }