1 条题解

  • 0
    @ 2024-12-6 21:43:58
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b,c;
    	string d;
    	cin>>a>>b>>c>>d;
    	cout<<a*3600+b*60+c+(d=="P")*43200;
    } 
    

    因为a是以hour做单位,所以是×2个60 以此类推 题目详见 https://www.luogu.com.cn/problem/B3847

    • 1

    信息

    ID
    75
    时间
    1000ms
    内存
    256MiB
    难度
    5
    标签
    (无)
    递交数
    41
    已通过
    18
    上传者