花式GCD
来源:互联网 发布:淘宝精密管 编辑:程序博客网 时间:2024/04/30 03:49
#include<iostream>#include<stdio.h>#include<string.h>#include<algorithm>#include<string>#include<math.h>using namespace std;int gcd(int a,int b){ return b?gcd(b,a%b):a;} int gcd1( int a, int b){ int r; while(b>0) { r=a%b; a=b; b=r; } return a;}int gcd2(int a,int b){ while(b^=a^=b^=a%=b); return a;}int main(){ int a,b; while (scanf("%d,%d",&a,&b)!=EOF) printf("%d\n",gcd(a,b));}
0 0
- 花式GCD
- 制作花式面包
- 个性酒吧花式调酒
- vim花式设置
- 花式杀死进程
- UITableviewCell的花式操作
- Android Toast花式使用
- Arduino花式点灯
- Python 花式索引
- arduino花式点灯续
- 花式找LCA
- 表格花式效果
- 表格花式效果
- ACM花式走楼梯
- Android Snackbar花式使用指南
- 动感单车花式动作123
- Android Snackbar花式使用指南
- spring mvc 花式出错
- 设计模式:设计模式原则
- 设计模式:组合模式
- constant
- selenium+webdriver:不支持导出iframe的处理
- 获取 Android raw 目录下 视频的缩略图
- 花式GCD
- CSS快速入门例子
- 不要做个浮躁的程序员
- Ubuntu14.04 LTS在VMware虚拟机中设置1080P启动
- 在SQL存储过程中给条件变量加上单引号
- VxWorks内核解读-1
- django缓存优化 Redis缓存介绍
- ACM 砖块计数
- Android Studio 下载 使用教程