Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
330956 路明泽 【C1-5】工作时间 C++ Compile Error 0 0 MS 0 KB 405 2025-07-11 13:06:12

Tests(0/0):


include <stdio.h> int main() { int a, b, c, d; scanf("%d", &a); scanf("%d", &b); scanf("%d", &c); scanf("%d", &d); // 计算总分钟数 int total_minutes = (c * 60 + d) - (a * 60 + b); // 转换为小时和分钟 int hours = total_minutes / 60; int minutes = total_minutes % 60; printf("%d %d\n", hours, minutes); return 0;


Judgement Protocol: