1 条题解

  • 2
    @ 2026-5-13 11:47:44
    #include<iostrea
    using namespace std;
    int main(){
    	int a,b,c,temp=0;
    	char v;
    	cin>>a>>b>>c>>v;
    	a=a%12;
    	temp=a*3600+b*60+c;
    	if(v=='A'){
    		cout<<temp<<endl;
    	}else if(v=='P'){
    		cout<<temp+3600*12<<endl;
    	
    }
    

    信息

    ID
    11
    时间
    1000ms
    内存
    256MiB
    难度
    8
    标签
    递交数
    129
    已通过
    22
    上传者