fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int ONE_HUNDRED = 100;
  5. const int ONE = 1, FIVE = 5;
  6.  
  7. int main() {
  8. int n;
  9. cin >> n;
  10. if (n % ONE_HUNDRED >= ONE || n % ONE_HUNDRED <= FIVE) {
  11. cout << (n / ONE_HUNDRED) * ONE_HUNDRED;
  12. }
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5280KB
stdin
534
stdout
500