holiday/8.16/A-Frog/Readme.md
2022-08-18 08:24:59 +08:00

16 lines
472 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 青蛙的约会
* https://vjudge.net/contest/509210#problem/A
### 题意
一定长度圆形跑道,两人起点不同,速度不同,问何时最快相遇
### 做法
exgcd线性方程求解取最小非负整数
### 关键词
exgcd线性方程求解取最小非负整数
### 易错点
* 取最小非负整数
* exgcd中//x,y没赋初值
* 题意printf("Impossible");//WA 罪魁祸首
### 工具箱
* 题解 https://www.luogu.com.cn/problem/solution/P1516
* 线性同余 —— 同余方程组的求解 https://zhuanlan.zhihu.com/p/451193655
* 数学一本通1.3.5京东读书