4 条题解

  • 1
    @ 2025-4-2 20:59:34

    水题一枚

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int a,b,k;
    	cin>>a>>b>>k;
    	if(b*k==a){
    		cout<<"YES";
    	}else{
    		cout<<"NO";
    	}
    }
    
    • 0
      @ 2026-8-27 15:05:28

      太难了

      很简单

      #include<bits/stdc++.h>

      using namespace std;

      int main(){

      int a,b,k;
      
      cin>>a>>b>>k;     
                        
      if(b*k==a){	 
      
      	cout<<"YES";
      
      }else{
      
       	cout<<"NO";
      
      }
      
      
      return 0;
      

      }

      • 0
        @ 2025-2-10 18:02:14
        #include<bits/stdc++.h>
        #define long long int 
        using namespace std;
        const int N=1e5+5,INF=0x3f3f3f3f;
        int a,b,k;
        int main()
        {
        	cin>>a>>b>>k;
        	if(a==b*k)cout<<"YES";
        	else cout<<"NO";
        	return 0;
        }
        
        • -2
          @ 2025-1-3 19:57:51
          #include<bits/stdc++.h>
          #define ll long long
          using namespace std;
          const int N=1e6+10;
          const int INF=0x3f3f3f3f;
          inline int read(){ll x=0,f=1;char ch=getchar();while (ch<'0'||ch>'9'){if (ch=='-') f=-1;ch=getchar();}while (ch>='0'&&ch<='9'){x=x*10+ch-48;ch=getchar();}return x*f;}
          int main(){
          	ll a,b,k;
          	cin>>a>>b>>k;
          	if(b*k==a)cout<<"YES";
          	else cout<<"NO";
          }
          
          
          • 1

          信息

          ID
          3142
          时间
          1000ms
          内存
          256MiB
          难度
          1
          标签
          递交数
          128
          已通过
          54
          上传者