fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b;
  6. cin >> a >> b;
  7. if (a < b && (b - a) % 2 != 0) {
  8. cout << "surori " << b - a;
  9. } else if ((a < b && (b - a) % 2 == 0) || (a > b && (b - a) % 2 != 0) || (a == b && (b - a) % 2 == 0)){
  10. cout << "." << b - a<<" ";
  11. if (a >= b) {
  12. cout << a;
  13. } else {
  14. cout << b;
  15. }
  16. }
  17. //if (a == b) {
  18. // cout << a;
  19. //}
  20. return 0;
  21. }
Success #stdin #stdout 0.01s 5320KB
stdin
9 -10
stdout
.-19 9