会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
蒟蒻豆进阶之路
管理
2021年8月28日
P1029 [NOIP2001 普及组] 最大公约数和最小公倍数问题
摘要: 题目传送门 一、穷举p和q #include <bits/stdc++.h> using namespace std; //最大公约数 int gcd(int x, int y) { return y ? gcd(y, x % y) : x; } //最小公倍数 int lcm(int x, int
阅读全文
posted @ 2021-08-28 10:09 糖豆爸爸
阅读(1019)
评论(0)
推荐(0)
公告
Live2D