coderforce 527APlaying with Paper
来源:互联网 发布:郁金香运动软件下载 编辑:程序博客网 时间:2024/06/13 07:20
//题意:一张纸,居短边对折直到最后一块是正方形。问把原先的矩形分成了多少块。#include<stdio.h>#include<string.h>#include<algorithm>using namespace std;#define LL long longint main(){ LL a,b; while(scanf("%lld%lld",&a,&b)!=EOF) { LL cnt=0; while(a!=b&&a>0&&b>0) { cnt+=a/b; LL c=a; a=b; b=c%b; } printf("%lld\n",cnt); } return 0;}
0 0
- coderforce 527APlaying with Paper
- 527A. Playing with Paper
- 527A. Playing with Paper
- Codeforces 527A Playing with Paper
- 527A. Playing with Paper【math】
- CodeForces 527A Playing with Paper
- codeforces 527A Playing with Paper
- coderforce 527A Arrays
- A. Playing with Paper
- Codeforces_round296_Playing with Paper
- A. Playing with Paper
- Playing with Paper
- CF527A Playing with Paper
- A-Playing with Paper
- A-Playing with Paper
- CodeForces 527A Playing with Paper 折纸游戏
- D-codeforces527A- Playing with Paper
- White Paper: Mobile Banking with BlackBerry
- swift 快速奔跑的兔几 本节的内容是:SpriteKit第4讲 字体和动画
- 解决Android Studio Gradle Build Running 特别慢的问题
- 对于适配器ArrayAdapter中getView方法重写
- ImageView控件的基本属性
- 如何构建一个小型的Zoomeye—-从技术细节探讨到实现
- coderforce 527APlaying with Paper
- Ubuntu 14.04 Apache2 支持中文文件名
- wtl学习
- route print
- Pixel
- 原生js和jQuery实现页面跳转的学习
- 用Photoshop生成的图片,使用IE8以下的浏览器打开不了
- Android资源文件res的使用详解(strings,layout,drawable,arrays等)from http://www.jcodecraeer.com/a/anzhuokaifa/an
- win7与VMware ubuntu虚拟机实现文件共享