1 solutions

  • 1
    @ 2026-8-6 16:23:28
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        int a,b,c;
    	cin>>a>>b>>c;
    	char d;
    	cin>>d;
    	if(d=='P')
    	{
    		a=a+12;
    	}
    	int z=3600*a+60*b+c;
    	cout<<z;
    	return 0; 
    }
    
    • 1

    Information

    ID
    1172
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    1
    Tags
    (None)
    # Submissions
    127
    Accepted
    49
    Uploaded By