10 条题解

  • 1
    @ 2024-11-14 16:52:02

    #include <bits/stdc++.h> #define int long long #define endl '\n' using namespace std; signed main(){ int n,x,y,chi; cin>>n>>x>>y; if(y%x!=0){ chi=y/x+1; } else if(y%x==0){ chi=y/x; } cout<<n-chi; return 0; }

    • 0
      @ 2024-2-23 11:20:06
      #include <bits/stdc++.h>
       #define int long long
       #define endl '\n'
       using namespace std;
       signed main(){
       int n,x,y,chi;
       cin>>n>>x>>y;
       if(y%x!=0){
       chi=y/x+1; }
       else if(y%x==0){ 
       chi=y/x; }
       cout<<n-chi;
       return 0;
       }
      
      • -2
        @ 2024-2-23 9:45:26
        #include <bits/stdc++.h>
         #define int long long
         #define endl '\n'
         using namespace std;
         signed main(){
         int n,x,y,chi;
         cin>>n>>x>>y;
         if(y%x!=0){
         chi=y/x+1; }
         else if(y%x==0){ 
         chi=y/x; }
         cout<<n-chi;
         return 0;
         }
        
        • -3
          @ 2024-2-23 9:43:26
          #include<iostream> 
          using namespace std;
           int main(){ int n,x,y,a,s;
            cin>>n>>x>>y; 
            s=y/x;
           if (y%x!=0){
          	s=s+1; 
          }
          n = n - s;
          cout<<n;
          return 0;
           }
          
          • -3
            @ 2024-2-22 21:15:53

            #include using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y%x!=0){ cout<<n-(y/x+1); } if(y%x==0){ cout<<n-y/x; } return 0; }

            • -3
              @ 2024-1-17 10:16:38

              #include using namespace std; int main(){ int n,x,y,a,s; cin>>n>>x>>y; s=y/x;

              if (y%x!=0){
              	s=s+1; 
              }
              n = n - s;
              cout<<"n";
              return 0;
              

              }

              • -3
                @ 2024-1-17 10:16:01

                #include using namespace std; int main(){ int n,x,y,a,s; cin>>n>>x>>y; s=y/x;

                if (y%x!=0){
                	s=s+1; 
                }
                n = n - s;
                cout<<n;
                return 0;
                

                }

                • -4
                  @ 2024-1-26 10:04:38

                  #include <bits/stdc++.h> #define int long long #define endl '\n' using namespace std; signed main(){ int n,x,y,chi; cin>>n>>x>>y; if(y%x!=0){ chi=y/x+1; } else if(y%x==0){ chi=y/x; } cout<<n-chi; return 0; }

                  • -5
                    @ 2024-2-23 9:48:50

                    #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(c%b==0){ cout<<a-c/b; } else{ cout<<a-1-c/b; } }

                    • -5
                      @ 2024-2-23 9:46:28

                      #include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n>>x>>y; if(y%x==0){ cout<<n-y/x; } else{ cout<<n-1-y/x; } }

                    • 1

                    信息

                    ID
                    2129
                    时间
                    1000ms
                    内存
                    256MiB
                    难度
                    1
                    标签
                    递交数
                    712
                    已通过
                    320
                    上传者