1 solutions

  • 0
    @ 2025-12-3 11:01:44

    C++ :

    #include <iostream>
    #include<cstdio>
    using namespace std;
    
    long long  a,b,c,d;       
    
    int main()
    {
      	cin >>a >>b>>c;
        if (a%c==0 && b%c==0) 
    		cout<<"yes"<<endl;
    	else
    		cout<<"no"<<endl;    
    	return 0;
    }
    
    • 1

    Information

    ID
    796
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    15
    Accepted
    13
    Uploaded By