- 博客(6)
- 收藏
- 关注
原创 欧拉定理的应用:Counting regions
title: 欧拉定理的应用:Counting regions date: 2022-05-10 22:39:56 tags: contest 欧拉定理的应用:Counting regions Counting regions Niuniu likes mathematics. He also likes drawing pictures. One day, he was trying to draw a regular polygon with n vertices. He connected ever.
2022-05-10 23:30:01
516
原创 HENAU寒假冬训营递推专题题解
传送门 密码:202202060000 A - 上台阶2 分情况递归 #include<bits/stdc++.h> using namespace std; const int N=100005; const int mod=100003; int dp[N]; int main() { dp[0]=1,dp[1]=1,dp[2]=1; int n; scanf("%d",&n); for(int i=3;i<=n;++i){ if(n>=5)
2022-02-09 22:10:02
809
1
原创 数学专题第22组题解
传送门 密码:202201150000 A - A^B Mod C 思路:快速幂 #include<bits/stdc++.h> using namespace std; typedef long long ll; ll qm(ll a,ll b,ll mod) { ll res=1; a%=mod;//a不能太大 while(b){ if(b&1)//如果b为奇数 res=(res*a)%mod; a=(
2022-01-18 02:30:41
741
原创 搜索专题第22组题解(HNEAU)
搜索专题第22组题解 写题之前你至少要搞懂深搜,广搜的原理,队列(先进先出)和栈(后进先出)的特点 深搜用堆栈存储,深搜的路径像面条一样,牺牲时间换空间,适用于求全部解的题等 广搜用队列存储,广搜的路径像水波一样,是往四周蔓延的,牺牲空间换时间,适用于求最短解的题等 A - 棋盘问题 建议先看全排列 #include<bits/stdc++.h> using namespace std; int vis[30],n,k,sum,m; char a[30][30]; void dfs(int p)
2022-01-14 14:24:14
384
1
原创 纯小白搭建的博客,要不要进来看看
博客:https://yujingsea.github.io/ 推荐用电脑打开,不然会失色不少 还是网上经典的一套:hexo+nexT+github 搭建了应该有五六天了,什么东西都是一点点复制粘贴过来的, C语言还没入门呢,其他语言就更别提了。 希望能得到大家的评论,也希望这是一个成长的平台,记录生活和学习的点点滴滴。 马上就要上大学了,趁着年轻,乘风破浪。 ...
2021-08-16 21:16:38
150
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅