70分
暴力出奇迹
Code:
#include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
long long ans=0;
char d;
cin>>a>>b>>c>>d;
for (int i=1;i<=a;i++){
ans+=3600;
}
for (int i=1;i<=b;i++){
ans+=60;
}
ans+=c;
if (d=='p')
{
for (int i=1;i<=12;i++){
ans+=3600;
}
}
cout<<ans;
}