跳到正文

SgtTree_

728459

林煜涵是可可爱爱的小南梁 喵~

这是 2026年11月11日 存档的第 3 版,不是当前版本。查看当前版本

资料、奖项与版本

3853397450

不想看主页?点我隐藏

补交RMJ :CF558E

O(n)O(n) 复杂度预处理前 nn 个数在 mod pp 意义下的逆元 - 线性逆元

inv[i]=(p−p/i)∗inv[p%i]%pinv[i] = ( p - p / i) * inv[p \% i] \% p
代码
$.get('/problem/U197494?_contentOnly',d=>{$("body").html(d.currentData.problem.hint)})

ΘI 大事记:

2022-5-14 注册洛谷祭!

2022-7-29 Accepted×100\color{green}\boxed{Accepted}\times \color{green}100 祭!

2022-8-1 洛谷绿名祭!

2022-10-16 Accepted×200\color{green}\boxed{Accepted}\times \color{green}200 祭!

2023-1-10 04:27 被粉兔at 祭(兔队秘制作息?)

代码
用户 小粉兔 提到了你
01-10 04:27
小粉兔 在帖子 建议撤下题解 中提到了你,快去看看吧!

2023-2-18 Accepted×300\color{green}\boxed{Accepted}\times \color{green} 300 祭!

2023-5-14 注册洛谷 一周年 祭!

2023-5-15 普及−×100\color{F39C11}\boxed{普及-} \times 100 祭!

2023-8-20 Accepted×400\color{green}\boxed{Accepted}\times \color{green} 400 祭!

2023-12-12 提交 1.00 k 祭!

2024-1-1 Accepted×500\color{green}\boxed{Accepted}\times \color{green} 500 祭!

2024-1-31 又被粉兔at 祭(再次见到了凌晨出没

代码
用户 小粉兔 提到了你
01-31 03:22
小粉兔 在帖子 洛谷举报专区 中提到了你,快去看看吧!

2024-1-19 洛谷橙名祭!

2024-2-29 被 cz at 祭(日期也挺特殊呢

2024-3-23 普及−×200\color{F39C11}\boxed{普及-} \times 200 祭!

2024-3-23 Accepted×600\color{green}\boxed{Accepted}\times \color{green} 600 祭!

2024-3-31 Record 内存 1000.00 KB

2024-5-4 AtCoder 上棕 祭!

2024-5-14 注册洛谷 二周年 祭!

2024-7-14 Accepted×700\color{green}\boxed{Accepted}\times \color{green} 700 祭!

2024-7-16 第一个头像 寿终正寝

2024-7-18 普及/提高−×100\color{FFC116}\boxed{普及/提高-} \times 100 祭!

2024-8-4 添加第一个 标签 B4016 祭!

2024-8-5 估值破 200 祭!

2025-5-14 注册洛谷 三周年 祭!

2025-10-24 Accepted×800\color{green}\boxed{Accepted}\times \color{green} 800 祭!

2026-5-14 注册洛谷 四周年 祭!


强推:

娱乐:

学术:

C++
struct ios{
    inline char gc(){
        static const int IN_LEN=1<<18|1;
        static char buf[IN_LEN],*s,*t;
        return (s==t)&&(t=(s=buf)+fread(buf,1,IN_LEN,stdin)),s==t?-1:*s++;
    }
    template <typename _Tp> inline ios & operator >> (_Tp&x){
        static char ch,sgn; ch = gc(), sgn = 0;
        for(;!isdigit(ch);ch=gc()){if(ch==-1)return *this;sgn|=ch=='-';}
        for(x=0;isdigit(ch);ch=gc())x=x*10+(ch^'0');
        sgn&&(x=-x); return *this;
    }
}io;
#define cin io

<= Rated Matches : 46

<= Rated Matches : 2


历届 CSP−JCSP-J 题目 (难度由小到大)

(广告位招租……)