10 条题解

  • 1
    @ 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
      @ 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;
          }
          
          • -5
            @ 2023-2-11 10:44:51

            抄答案‽‽‽

            • -7
              @ 2022-10-15 10:56:00

              #include<iostream>
              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;
              }

            • -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;	
                }
                
                • -8
                  @ 2022-2-8 17:29:04

                  #include <stdio.h> #include <iostream> using namespace std; 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; }

                  • -10
                    @ 2022-2-8 14:43:35

                    #include<iostream> using namespace std; int main() { int a,b,c,d; cin>>a; b=a/3600; c=(a-((a/3600)*3600))/60; d=(a-((a/3600)3600)-c60)/1; cout<<b<<endl; cout<<c<<endl; cout<<d<<endl; }

                    • 1

                    信息

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