fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c;
  6. cin>>a>>b>>c;
  7. if (a%b==0 or a%c==0 or b%a==0 or b%c==0 or c%a==0 or c%b==0)
  8. cout<<"/";
  9. else
  10. cout<<"NOSOL";
  11. return 0;
  12. }
Success #stdin #stdout 0.01s 5292KB
stdin
1
2
2
stdout
/