
acwing
爱打酱油的剑姬
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
acwing 越狱(快速幂)
#include "bits/stdc++.h"#define ll long longusing namespace std;const int mod = 100003;ll n,m;ll ss(ll x, ll y){ ll ans = 1 ; while (y){ if(y&1) ans = ans * x % mod; x = x*x%mod; y >>=1; } return...原创 2022-01-17 16:57:33 · 284 阅读 · 0 评论 -
3489. 星期几(acwing)
#include"bits/stdc++.h"using namespace std;map<string,int>mp={ {"January",1},{"February",2},{"March",3}, {"April",4},{"May",5},{"June",6}, {"July",7},{"August",8},{"September",9}, {"October",10},{"November",11},{"December",12}};int ss(int x.原创 2021-11-02 21:44:26 · 88 阅读 · 0 评论 -
阶乘的和(acwing)
#include"bits/stdc++.h"using namespace std;set<int>S;int n;int f[10];void init(){ f[0]=f[1]=1; for(int i=2;i<10;i++) f[i] = f[i-1]*i; for(int i=1 ;i < 1 << 10 ; i ++) { int s = 0; for(int j=0 ; j < 10 ; j ++){ if(i &.原创 2021-11-02 19:57:36 · 124 阅读 · 0 评论