fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int x , y;
  6. char a = '.', b = '+' , c = '-';
  7. cin >> x >> a >> y;
  8. if(0 <= y <= 2 and 1 <= x <= 15)
  9. {
  10. cout << x << c;
  11. }
  12. else if(3 <= y <= 6 and 1 <= x <= 15)
  13. {
  14. cout << x;
  15. }
  16. else if(7 <= y <= 9 and 1 <= x <= 15)
  17. {
  18. cout << x << b;
  19. }
  20. }
  21.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
1906340912-