9 条题解

  • 3
    @ 2023-5-12 17:39:49
    #include <iostream>
    using namespace std;
    int main() 
    {
        int n, shi, fen, miao;
        cin >> n;
        shi = n / 3600;
        fen = (n - shi * 3600) / 60;
        miao = (n - shi * 3600 - fen * 60);
        cout << shi << endl << fen << endl << miao;
        return 0;
    }
    
    • 0
      @ 2025-7-10 11:34:28

      #include #include #include using namespace std; int main() {

      int n, h, min, s;
      cin >> n;
      h = n / 3600;
      min = (n - h * 3600) / 60;
      s = (n - h * 3600 - min * 60);
      cout << h << endl << min << endl << s;
      return 0;
      

      }

      • 0
        @ 2024-7-26 9:44:09

        using namespace std; int main() {#include

        int n,a,b,c;
        cin >>n;
        a=n/3600;
        b=n/60%60;
        c=n%60;
        cout <<a <<"\n" <<b <<"\n" <<c; 
        
        return 0;
        

        }

        • 0
          @ 2022-10-30 16:16:07
          #include <bits/stdc++.h>
          
          using namespace std;
          
          int main()
          {
              int s, m, h;
          
              cin >> s;
          
              m = s / 60;
              s = s % 60;
              h = m / 60;
              m = m % 60;
            
              cout << h << endl << m << endl << s;
          
              return 0;
          }
          
          • -2
            @ 2023-4-27 13:39:23
            #include <bits/stdc++.h>
            
            using namespace std;
            
            int main()
            {
                int s, m, h;
            
                cin >> s;
            
                m = s / 60;
                s = s % 60;
                h = m / 60;
                m = m % 60;
              
                cout << h << endl << m << endl << s;
            
                return 0;
            }
            
            • -3
              @ 2023-1-2 10:53:53
              using namespace std;
              int main(){
              	int h,m,s,t;
              	cin>>t;
              	h=t/3600;
              	m=(t-h*3600)/60;
              	s=t-h*3600-m*60;
              	cout<<h<<endl<<m<<endl<<s;
              }
              
              • -7
                @ 2022-10-15 10:56:00

                #include
                using namespace std;
                int main(){
                int n,m,f,s;
                cin>>n;
                m=n%60;
                f=n/60%60;
                s=n/60/60%60;
                cout<<s<<endl<<f<<endl<<m<<endl;
                }

                • @ 2023-5-15 18:08:23

                  886

              • -7
                @ 2022-8-13 19:03:43
                #include <iostream>
                #include <algorithm>
                #include <cstdio>
                #include <cstring>
                #include <string>
                #include <iomanip>
                #include <cmath>
                #include <queue>
                #include <map>
                #include <stack>
                #include <vector>
                using namespace std;
                #define long long LL
                const int N = 1e6+6;
                const int INF = 0x3f3f3f3f;
                int main(){
                    int n;
                    cin >> n;
                    cout << n / 3600 << endl;
                    cout << (n -  3600 * (n / 3600)) / 60 << endl;
                    cout << n % 60;
                    return 0;
                }
                
                • -7
                  @ 2022-8-2 10:01:06
                  #include <queue> 
                  #include <math.h> 
                  #include <stack> 
                  #include <stdio.h>
                  #include <iostream>
                  #include <vector> 
                  #include <iomanip> 
                  #include <string.h> 
                  #include <algorithm>
                  using namespace std;
                  #define LL long long
                  const int N = 1e5 + 10; 
                  const int INF = 0x3f3f3f3f; 
                  int main()
                  {
                  	int n;
                  	cin >> n; 
                  	int a , b , c; a = n / 3600; 
                  	cout << a <<endl; 
                  	b = (n / 60)-(60 * a); 
                  	cout << b <<endl;
                  	c = n-(60 * b)-(3600 * a); 
                  	cout << c <<endl;	
                  }
                  
                  • 1

                  信息

                  ID
                  836
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  4
                  标签
                  递交数
                  1036
                  已通过
                  514
                  上传者