博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Educational Codeforces Round 39 B Weird Subtraction Process
阅读量:4638 次
发布时间:2019-06-09

本文共 1198 字,大约阅读时间需要 3 分钟。

模拟,写的比较土,别吐槽

#include 
using namespace std;typedef long long ll ;typedef double dl ;#define INF 0x7fconst int inf = 987654321;const int sz = 1e6 + 5;const int mod = 1e9 + 7;const int sqrtn = 300;#define f(i,l,r) for(int i=l;i<=r;++i)#define g(i,l,r) for(int i=l;i>=r;--i)#define CLR(arr,val) memset(arr,val,sizeof(arr))#define sz(a) strlen(a)#define FAST_IO ios::sync_with_stdio(false);cin.tie(0);#define lowbit(x) x&(-x)#define X first#define Y second #define pb push_back#define pii pair
int dir[8][2]={
{
1,0},{-1,0},{
0,1},{
0,-1},{
1,1},{
1,-1},{-1,1},{-1,-1}};ll a,b;void work(){ cin>>a>>b; while(1) { if(a==0||b==0) { break; } else { if(a>=2*b) { a=a-a/(2*b)*(2*b); continue; } else { if(b>=2*a) { b=b-b/(2*a)*(2*a); continue; } else { break; } } } } cout<
<<" "<<

 

转载于:https://www.cnblogs.com/corx/p/8523835.html

你可能感兴趣的文章
.vimrc
查看>>
Coding源码学习第一部分(AppDelegate.m)
查看>>
VS使用过程中的一些问题
查看>>
极限编程在WEB开发中的作用
查看>>
printf的使用
查看>>
NLP Attention
查看>>
PHP 之数据类型判断
查看>>
第二次冲刺 站立会议3
查看>>
LA3029最大子矩阵
查看>>
万网域名MX解析设置方案[net.cn, ubuntu]
查看>>
403. Frog Jump
查看>>
C++学习之二分查找续
查看>>
Vue创建SPA那些事
查看>>
python基础学习1-列表推导式和字典推导式
查看>>
Linux下开发python django程序(模板设置和载入数据)
查看>>
mfc Radio Buttons
查看>>
Python【第三章】:python 面向对象 (new)
查看>>
redis学习总结
查看>>
css文字禁止选中
查看>>
[刘阳Java]_Java环境搭建_第2讲
查看>>