#include #include #include using namespace std; int main(){ int ar,br; cin>>ar>>br; double rar,rbr; int car,cbr; int ap,bp; int tmp,ans; ans=200; //aを設定 for(double i=0;i<=100;i++){ //bを設定 for(double k=0;k<=100;k++){ if(i!=0||k!=0){ rar=(100*i)/(i+k); rbr=(100*k)/(i+k); car=round(rar); cbr=round(rbr); if(car==ar&&cbr==br){ tmp=i+k; if(tmp