Source Code
#include <iostream>
#include <math.h>

int main() {
  int h,t;
  cin >> %d%d >> &h >>&t;
  for(int j = 0; j <= 100; j++){
    if(t*j > h) {
      cout << endl << %d << j-1;
      break;
      }
  }
  return 0;
}
Copy
The Tortoise and the Hare Ayoooy
GNU G++17
0 ms
0 KB
Compilation Error