- 博客(3)
- 收藏
- 关注
原创 UVA12169
思路:枚举a,根据扩展欧几里得算法算出b,之后检查此组a和b是否正确。#include<iostream>using namespace std;typedef long long LL;const int maxn = 100 + 10;const int maxv = 10001;int x[2*maxn], T;void gcd(LL a, LL b, LL& d, LL& x, LL
2017-02-06 23:19:02
461
原创 Codeforces #395 Div2
A. Taymyr is calling youAccepted#include<iostream>#include<cstdio>using namespace std;int main(){ int n,m,z,gcd=1,a,b; cin >> n >> m >> z; a=n; b=m; while(a!=1&&b!=1) {
2017-02-03 16:58:49
282
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人