fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. const int TEN = 10;
  6. int x, y, z;
  7. cin >> x >> y >> z;
  8. if (x == y % TEN && z == y / TEN || x == y / TEN && z == y % TEN) {
  9. /*if (x * TEN + z == y || z * TEN + x == y) {*/
  10. cout << "SE POATE";
  11. } else {
  12. cout << "NU SE POATE";
  13. }
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5288KB
stdin
 
2 32 2
stdout
NU SE POATE