70分,不知道怎样改,求大佬帮忙,必回关
查看原帖
70分,不知道怎样改,求大佬帮忙,必回关
1580144
XR20121219楼主2024/12/1 19:02
#include<bits/stdc++.h>
using namespace std;

int main(){
	int h,m,s;
	char t;
	cin>>h>>m>>s>>t;
	if(t=='A'){
		cout<<h*60*60+m*60+s;
	}
	else{
		cout<<12*60*60+h*60+m*60+s;
	}
    return 0;
}
2024/12/1 19:02
加载中...