#include #include using namespace std; using P = pair; int main(){ //dp[tx][ty]横にtx,縦にty回割っていけるか? long double x,y,h; int cnt=0; P dp[100][100]; bool used[100][100]={0}; cin >> x >> y >> h; h/=1000; dp[0][0]=make_pair(x,y); bool flag=true;used[0][0]=true; //cnt=0から確認 while(flag){ flag=false; for(int tx=0;tx<=cnt;tx++){ if(!used[tx][cnt-tx])continue; //縦で割るとき if(h