185. 种田

NBC++

简单题由菜鸡来提供答案吧.

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;
}

你当前正在回复 博客/题目
存在问题!