标签:turn ret oid min nbsp int 计算 http can
https://pintia.cn/problem-sets/13/problems/403
1 #include <stdio.h> 2 int main(void) 3 { 4 int start_time, end_time; 5 int start_minutes, end_minutes; 6 int hours, minutes; 7 8 scanf("%d %d", &start_time, &end_time); 9 start_minutes = start_time / 100 * 60 + start_time % 100; 10 end_minutes = end_time / 100 * 60 + end_time % 100; 11 hours = (end_minutes - start_minutes) / 60; 12 minutes = (end_minutes - start_minutes) % 60; 13 14 printf("%02d:%02d\n", hours, minutes); 15 16 return 0; 17 }
标签:turn ret oid min nbsp int 计算 http can
原文地址:https://www.cnblogs.com/2018jason/p/12253539.html