上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页
摘要: #include using namespace std; double f1; char s[2020],t[300]; int f[10000],k,a[100]; int main() { int T; scanf("%d",&T); while (T--) { memset(f,0,sizeof(f));memset(a,0,siz... 阅读全文
posted @ 2019-08-03 17:48 Snow_in_winer 阅读(168) 评论(0) 推荐(0)
摘要: import java.util.Scanner; import java.math.BigInteger; public class Main { public static void main(String[] args){ Scanner cin=new Scanner(System.in); int T=cin.nextInt(); ... 阅读全文
posted @ 2019-08-02 19:56 Snow_in_winer 阅读(146) 评论(0) 推荐(0)
摘要: #include using namespace std; typedef long long ll; const ll inf=0x3f3f3f3f3f3f3f3f; ll calc(ll x,char op,ll y) { if (op=='+') return x+y; if (op=='-') return x-y; if (op=='*') return... 阅读全文
posted @ 2019-08-02 18:46 Snow_in_winer 阅读(217) 评论(0) 推荐(0)
摘要: 约数之和 处理阶乘和阶乘的逆元 线性求逆元 Lucas 阅读全文
posted @ 2019-08-02 09:50 Snow_in_winer 阅读(121) 评论(0) 推荐(0)
摘要: #include using namespace std; typedef long long ll; ll n,m,y,z,p,x,ans,block; mapmp; ll quick(ll a,ll b,ll p) { ll res=1%p; while (b) { if (b&1) { res=res*... 阅读全文
posted @ 2019-08-01 19:46 Snow_in_winer 阅读(219) 评论(0) 推荐(0)
摘要: #include using namespace std; int n; int main(){ int T; scanf("%d",&T); while (T--){ scanf("%d",&n); for (int i=1;i using namespace std; typedef long long ll; char s[10... 阅读全文
posted @ 2019-08-01 18:00 Snow_in_winer 阅读(136) 评论(0) 推荐(0)
摘要: https://vj.ti12z.cn/b02428b1bbcf4609f7b121c06ef01b09?v=1564291265 A. 思路当K为1时显然的和N的奇偶性有关,那么我们考虑一下K>1 K>1K>1的情况对于先手的Adrien来说,他对任意的N颗石子,他都可以将这N颗石子分成两段 阅读全文
posted @ 2019-07-31 23:24 Snow_in_winer 阅读(178) 评论(0) 推荐(0)
摘要: #include using namespace std; const int N=200010; int sum,ans[N],base,now,n; int main() { int T; scanf("%d",&T); while (T--) { sum=0; scanf("%d",&n); for (int... 阅读全文
posted @ 2019-07-31 18:15 Snow_in_winer 阅读(142) 评论(0) 推荐(0)
摘要: #include using namespace std; const int maxn=2000101; struct node { int son[30],flag,fail,ans; void clear() { memset(son,0,sizeof(son)); fail=flag=0; } } trie[maxn]; ... 阅读全文
posted @ 2019-07-31 10:09 Snow_in_winer 阅读(202) 评论(0) 推荐(0)
摘要: struct trie { int tree[maxn][30],sum[maxn],flag[maxn],tot; void insert_(char *str) { int len = strlen(str); int root = 0; for (int i = 0; i using namespace std; ... 阅读全文
posted @ 2019-07-30 20:51 Snow_in_winer 阅读(161) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 20 下一页