摘要:
虽然并没有任何的意义,但是我觉得很有意思,所以记录一下: #include <bits/stdc++.h> #define int long long using namespace std; const int MN=1e6+116; struct Node{ int lc, rc, siz, r 阅读全文
posted @ 2025-10-29 17:09
BaiBaiShaFeng
阅读(2)
评论(0)
推荐(0)
摘要:
整理一下关于 exgcd 的内容,都说写完这道题就会做所有 exgcd 的题了,是不是我不知道,反正今天又做了一遍,记录一下我的过程,感觉没有太难。 题意 求不定方程 \(ax+by=c\) 的解。 以下称正整数解为 \(x,y\) 都是正整数的解,其中有一个是非正整数就不行。 如果没有任何整数解, 阅读全文
posted @ 2025-10-29 11:21
BaiBaiShaFeng
阅读(4)
评论(0)
推荐(0)

浙公网安备 33010602011771号