3 条题解

  • 1
    @ 2026-8-21 20:28:35

    正确答案,求赞!

    #include<queue>
    #include<math.h>
    #include<stdio.h>
    #include<iostream>
    #include<vector>
    #include<iomanip>
    #include<string.h>
    #include<algorithm>
    #include<cmath>
    #include<cstdio>
    #include<cstring>
    #include<stack>
    #include<fstream>
    #include<string>
    using namespace std;
    #define LL long long
    const int N = 1e5 + 10;
    const int INF = 0x3f3f3f3f;
    int main()
    {
    	int gay , sb , tm;
        cin >> gay >> sb >> tm;
        cout << gay * 3600 + sb * 60 + tm;
        return 0;
    }
    • -1
      @ 2026-6-7 21:19:59

      解题思路:想换算,先输入在求值 代码:

      #include <iostream>//头文件 
      using namespace std;//命名空间 
      int main(){//主函数 
      	int hour,minute,second; 
      	cin >> hour >> minute >> second;
      	cout << hour * 60 * 60 + minute * 60 + second;//换算,众所周知1时=60分,1分=60秒 
      	return 0;//代码停止运行 
      } 
      
      • -1
        @ 2026-4-7 13:05:20

        #include using namespace std; int main() { int h,m,s; cin >>h>>m>>s; cout<<h3600+m60+s<<endl; }

        • 1

        信息

        ID
        3487
        时间
        1000ms
        内存
        256MiB
        难度
        3
        标签
        (无)
        递交数
        131
        已通过
        74
        上传者