简单题由菜鸡来提供答案吧.
using namespace std ;
int main (){ long long x,y; cin >>x >>y; long long area = 0; long long a,b; while (y){ a = x/y; b = x%y; area += 4ay; x = y; y = b; } cout << area << endl; }
简单题由菜鸡来提供答案吧.
include
include
using namespace std ;
int main (){
long long x,y;
cin >>x >>y;
long long area = 0;
long long a,b;
while (y){
a = x/y;
b = x%y;
area += 4ay;
x = y;
y = b;
}
cout << area << endl;
}