上一页 1 ··· 37 38 39 40 41
摘要: 注意 不用vis[]判断 直接在 did结构体里面写operator < 写cmp的话要超时!!! #include<bits/stdc++.h> using namespace std; typedef long long ll; const int inf=(1<<31)-1; const in 阅读全文
posted @ 2023-02-24 20:34 N0zoM1z0 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 实现原理 tkinter 设计图形交互界面 在百度开发者平台申请权限 获得 appid 密钥 为保证安全 要使用 sign签名:使用md5算法 生成的一段字符串 生成的签名长度为32位 英文字符均为小写格式 签名生成的方法: 将请求参数中的 aappid+query(q,注意为'utf-8'编码)+ 阅读全文
posted @ 2023-02-19 23:12 N0zoM1z0 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 计算组合数 或者有除法的取模 比如C(n,m)%p n!/m!*(n-m)! 计算inv[m!] inv[(n-m)!] 费马小定理 a%p の 逆元: a^(p-2) 用快速幂取模计算即可 阅读全文
posted @ 2023-02-07 10:34 N0zoM1z0 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 快读 char *p1,*p2,buf[100000]; #define nc() (p1==p2 && (p2=(p1=buf)+fread(buf,1,100000,stdin),p1==p2)?EOF:*p1++) int read() { int x=0,f=1; char ch=nc(); 阅读全文
posted @ 2023-02-07 10:21 N0zoM1z0 阅读(10) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41