16 条题解

  • 4
    @ 2024-1-7 18:47:52

    我真的醉了,这道题我一个Level2的都会做还有谁不会

    #include <iostream>
    using namespace std;
    int main()
    {
        int m, n;
        cin >> m >> n;
        if (m % n == 0)
        {
            cout << m / n;
        }
        else
        {
            cout << m / n + 1;
        }
        return 0;
    }
    

    当年我双手插兜,不知道什么叫做对手~ 不知道怎么养狗,不知道怎么种莲藕~ 却知道怎么当个老六~~~~~~🤙🤙🤙

    • 1
      @ 2024-4-22 20:24:33

      So easy

      #include <iostream>
      using namespace std;
      int main()
      {
          int m,n;
          cin >> m >> n;
          if (m%n==0)
          {
              cout << m/n;
          }
          else
          {
              cout << m/n+1;
          }
          return 0;
      }
      
      • 0
        @ 2024-2-20 19:38:06
        #include <iostream>
        using namespace std;
        int main()
        {
        int m, n;
        cin >> m >> n;
        if (m % n == 0)
        {
        cout << m / n;
        }
        else
        {
        cout << m / n + 1;
        }
        return 0;
        }
        
        • 0
          @ 2023-12-12 17:58:39
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-12-12 17:58:16
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-12-12 17:58:12
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-12-12 17:58:08
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-12-12 17:58:03
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-12-12 17:57:59
          #include <bits/stdc++.h> 
          using namespace std;
          #define ll long long
          int main(){
              cout<<4;
              return 0;
          }
          
        • 0
          @ 2023-7-27 21:22:33
          #include <bits/stdc++.h>
          using namespace std;
          double a,b;
          int main()
          {
              cin>>a>>b;
              cout<<ceil(a/b);
              return 0;
          }
          
          • 0
            @ 2023-7-7 11:06:43

            #include<iostream> using namespace std; int main() { int a,b,n,m; cin>>a>>b; n=a/b; m=n*b; if(m>=a) { cout<<n; } else { cout<<n+1; } return 0; }

            • 0
              @ 2023-4-15 22:35:27
              #include <iostream>
              using namespace std;
              int main()
              {
                  int m;
                  int n;
                  cin>>m;
                  cin>>n;
                  if (m%n==0)
                  {
                      cout<<m/n;
                  }
                  else
                  {
                      cout<<m/n+1;
                  }
                  return 0;
              }
              
              • 0
                @ 2023-4-15 20:56:42
                #include<bits/stdc++.h>
                using namespace std;
                int main()
                {
                    int m;
                    int n;
                    cin >> m >> n;
                    if ( m%n==0 )
                        cout << m/n ;
                    else
                        cout << m/n+1 ;
                    return 0;
                }
                
                • 0
                  @ 2023-3-28 20:53:35
                  #include<bits/stdc++.h>
                  using namespace std;
                  int main()
                  {
                      int m,n;
                      cin>>m>>n;
                      if (m%n==0)
                          cout<<m/n;
                      else
                          cout<<m/n+1;
                      return 0;
                  }
                  
                  • 0
                    @ 2022-12-23 10:23:59
                    #include <iostream>
                    using namespace std;
                    int main()
                    {
                        int m, n;
                        cin >> m >> n;
                        if(m % n == 0)
                            cout << m / n;
                        else
                            cout << m / n + 1;
                        return 0;
                    }
                    
                    • 0
                      @ 2022-1-29 9:10:10
                      #include<bits/stdc++.h>
                      using namespace std;
                      int main()
                      {
                          int m,n;
                          cin>>m>>n;
                          if(m%n!=0)
                          {
                              cout<<m/n+1;
                              return 0;
                          }
                          cout<<m/n;
                          return 0;
                      }
                      
                      • 1

                      信息

                      ID
                      24
                      时间
                      1000ms
                      内存
                      16MiB
                      难度
                      3
                      标签
                      递交数
                      539
                      已通过
                      296
                      上传者