码迷,mamicode.com
首页 >  
搜索关键字:c. dzy loves sequences    ( 1332个结果
Little Elephant and Magic Square
Little Elephant loves magic squares very much. A magic square is a 3?×?3 table, each cell contains some positive integer. At that the sums of integers ...
分类:其他好文   时间:2018-01-21 01:07:30    阅读次数:184
D. Unusual Sequences(容斥)
D. Unusual Sequences 隔板法 + 容斥原理 1 //容斥(莫比乌斯反演) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define LL long long 5 const int mod = 1e9+7; 6 LL ...
分类:其他好文   时间:2018-01-20 22:57:26    阅读次数:407
[BZOJ3309]DZY Loves Math
[题面戳我][1] 题意:多组数据,给出n,m,求 $$\sum_{i=1}^{n}\sum_{j=1}^{m}f(\gcd(i,j))$$ 其中$f(i)$表示$i$所含质因子的最大幂指数。 例如$f(1960)=f(2^3 5^1 7^2)=3, f(10007)=1, f(1)=0$。 $T\ ...
分类:其他好文   时间:2018-01-20 17:53:24    阅读次数:163
【BZOJ3309】DZY Loves Math
Time Limit: 5000 ms Memory Limit: 512 MB Description ? 对于正整数n,定义f(n)为n所含质因子的最大幂指数。例如f(1960)=f(2^3 5^1 7^2)=3, f(10007)=1, f(1)=0。 ? 给定正整数a,b,求$\sum\li ...
分类:其他好文   时间:2018-01-07 14:16:41    阅读次数:178
洛谷 P2393 yyy loves Maths II
P2393 yyy loves Maths II P2393 yyy loves Maths II P2393 yyy loves Maths II 题目背景 上次蒟蒻redbag可把yyy气坏了,yyy说他只是小学生,蒟蒻redbag这次不坑他了。 题目描述 redbag给了yyy很多个数,要yy ...
分类:其他好文   时间:2018-01-07 12:05:44    阅读次数:187
洛谷——P2393 yyy loves Maths II
P2393 yyy loves Maths II 题目背景 上次蒟蒻redbag可把yyy气坏了,yyy说他只是小学生,蒟蒻redbag这次不坑他了。 题目描述 redbag给了yyy很多个数,要yyy计算这些数的和。必须要快,redbag只给了yyy1秒的时间!!! 输入输出格式 输入格式: 一行 ...
分类:其他好文   时间:2018-01-07 11:47:59    阅读次数:132
luogu2393 yyy loves Maths II
使用long double ...
分类:其他好文   时间:2018-01-01 22:02:51    阅读次数:143
CNN 和RNN 中input 长度不一致问题
转自:https://www.jianshu.com/p/86d667ee3c62,感谢分享! pad_sequences & Masking layer 上面提到,文本数据也可以用CNN来处理。很多人有疑问,CNN的输入通常是一个(图像)矩阵,而文本中句子或者文章的长度不一,CNN如何将长短不一的 ...
分类:其他好文   时间:2017-12-30 12:12:42    阅读次数:498
BZOJ3560 DZY Loves Math V 数论 快速幂
原文链接http://www.cnblogs.com/zhouzhendong/p/8111725.html 题目传送门 - BZOJ3560 题意概括 给定n个正整数a1,a2,…,an,求 的值(答案模10^9+7)。 1<=n<=10^5,1<=ai<=10^7。 题解 本人是蒟蒻。 可以看这 ...
分类:其他好文   时间:2017-12-26 00:52:54    阅读次数:157
1138. Postorder Traversal (25)
Suppose that all the keys in a binary tree are distinct positive integers. Given the preorder and inorder traversal sequences, you are supposed to out ...
分类:其他好文   时间:2017-12-23 17:12:36    阅读次数:159
1332条   上一页 1 ... 37 38 39 40 41 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!