蒟蒻小白想求助各位帮我看看哪里错了,wa
查看原帖
蒟蒻小白想求助各位帮我看看哪里错了,wa
394216
DaisyN楼主2020/9/27 23:25
#include<stdio.h>
int main(){
	int a,b,c,d,e,f;
	scanf("%d hour %d minute",&a,&b);
	scanf("%d hour %d minute\n",&c,&d);
	e=((c*60+d)-(a*60+b))/60;
	f=((c*60+d)-(a*60+b))%60;
	printf("%d %d",e,f);
	return 0;
} 
2020/9/27 23:25
加载中...