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 && a % c == 0 && b % c == 0) cout << "/";
  8. else cout << "NOSOL";
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5292KB
stdin
1 2 2
stdout
NOSOL