- 博客(6)
- 收藏
- 关注
原创 欧拉定理的应用:Counting regions
title: 欧拉定理的应用:Counting regionsdate: 2022-05-10 22:39:56tags: contest欧拉定理的应用:Counting regionsCounting regionsNiuniu 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
438
原创 HENAU寒假冬训营递推专题题解
传送门密码:202202060000A - 上台阶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
784
1
原创 数学专题第22组题解
传送门密码:202201150000A - 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
722
原创 搜索专题第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
357
1
原创 纯小白搭建的博客,要不要进来看看
博客:https://yujingsea.github.io/推荐用电脑打开,不然会失色不少还是网上经典的一套:hexo+nexT+github搭建了应该有五六天了,什么东西都是一点点复制粘贴过来的, C语言还没入门呢,其他语言就更别提了。希望能得到大家的评论,也希望这是一个成长的平台,记录生活和学习的点点滴滴。马上就要上大学了,趁着年轻,乘风破浪。...
2021-08-16 21:16:38
142
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅