#include<stdio.h>int main(){int time1,time2 = 0;scanf("%d %d",&time1,&time2);int hour1 = time1/100;int minute1 = time1%100;int hour2 = time2/60;int minute2 = time2%60;int hour3 = hour1 - hour2;int minute3 = minute1 - minute2;if (minute3 >= 0)printf("%d%d",hour3,minute3);elseprintf("%d%d",hour3-1,minute3+60);return 0;}
æåäº.
è¾åºç åºè¯¥æ¯ç¬¬ä¸ä¸ªè¾å ¥ å ä¸ç¬¬äºä¸ªè¾å ¥ å¾å°çç»æ.
ä½ ç»åäº.
个人è§å¾, ç±äºéå®å¨åä¸å¤©, é£ä¹æ第ä¸ä¸ªæ¶é´è½¬ä¸ºåéæ°, å ä¸ç¬¬äºä¸ª, å转为å°æ¶ååé, ä¼æ´ç®å
æ¯å¦
#include<stdio.h>