(2015-1)長方形中的正方形

題目描述: 給出長方形的長和寬,每次從長方形裏撕去最大的正方形,輸出最後能獲得多少正方形spa 樣例輸入: 輸入:code 3 4 輸出:it 4 代碼:  #include <cstdio> #include <algorithm> using namespace std; int main(){ int a, b; //a 長 , b 寬 scanf("%d%d", &a
相關文章
相關標籤/搜索