18 条题解

  • 1
    @ 2025-2-22 8:50:11

    你被骗了

  • 1
    @ 2025-2-21 11:04:32
    #include<bits/stdc++.h>
    using namespace  std;
    int main(){
    	double n,x,y,a;
    	cin>>n>>x>>y;
    	a=n-(y/x);
    	cout<<floor(a);
    	return  0;
    }
    
    

    最简洁的方法

    • 0
      @ 2025-2-21 11:01:51

      #include<bits/stdc++.h> using namespace std; int main(){ int x,y; cin>>x>>y; if(x>y) cout<<">"; if(x==y) cout<<"="; if(x<y) cout<<"<"; return 0; } 这个才是正确答案!!!

      哇塞,这个是真的好用!!!!

      孩子很爱吃!!!

      • -1
        @ 2025-2-21 11:50:10

        #include <bits/stdc++.h 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; }

        • -1
          @ 2025-2-14 10:55:26

          #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-(y/x+1); return 0; }

          • -1
            @ 2025-2-14 10:51:15

            uasz ,爱是什么,maam<am<M<k,

            • -1
              @ 2025-2-14 10:49:32

              #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-(y/x+1); } return 0; }

              • -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; }

                • -1
                  @ 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
                    @ 2025-2-21 14:05:59

                    #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-(y/x+1); } 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-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-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;
                           }
                          
                          • -4
                            @ 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; }

                            • -4
                              @ 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;
                              

                              }

                              • -5
                                @ 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; }

                                • -7
                                  @ 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; } }

                                  • -9
                                    @ 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
                                  标签
                                  递交数
                                  1156
                                  已通过
                                  549
                                  上传者