Description 给定n,m,求$\sum_{i=1}^{n}\sum_{j=1}^{m}\varphi(ij)$模10^9+7的值。 Input 仅一行,两个整数n,m。 Output 仅一行答案。 Sample Input 100000 1000000000 Sample Output 8 ...
分类:
其他好文 时间:
2018-07-30 13:24:12
阅读次数:
186
public class MainActivity extends Activity { private ImageView iv_main_scan; private TextView tv_main_scan; private ProgressBar pb_main_scan; @Overrid... ...
分类:
移动开发 时间:
2018-07-25 13:14:55
阅读次数:
144
public class DAActivity extends Activity implements OnClickListener { private ImageView iv_da_mm; private Button btn_da_start; private Button btn_da_s... ...
分类:
其他好文 时间:
2018-07-24 23:47:48
阅读次数:
228
public class VAActivity extends Activity { private ImageView iv_animation; private TextView tv_animation_msg; @Override public void onCreate(Bundle sa... ...
分类:
其他好文 时间:
2018-07-24 22:51:49
阅读次数:
344
题目描述 "OK, you are not too bad, em... But you can never pass the next test." feng5166 says."I will tell you an odd number N, and then N integers. There ...
分类:
其他好文 时间:
2018-07-17 14:25:11
阅读次数:
188
传送门: http://acm.hdu.edu.cn/showproblem.php?pid=1029 Ignatius and the Princess IV Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32767 K (J ...
分类:
其他好文 时间:
2018-07-15 21:26:12
阅读次数:
189
Description 给定n,m,求 模10^9+7的值。 Solution 设 $S(n,m)$ 表示 $\sum_{i=1}^{m}\phi(n i)$ $Ans=\sum_{i=1}^{n}S(i,m)$ $S(n,m)=\sum_{i=1}^{m}\phi(n i)$ 如果 $\mu(n) ...
分类:
其他好文 时间:
2018-07-14 17:42:13
阅读次数:
204
https://vjudge.net/problem/SPOJ-QTREE4 点分就没有一道不卡常的? 卡常记录: 1.把multiset换成手写的带删除堆(套用pq)(作用很大) 2.把带删除堆里面pq换成用vector+push_heap/pop_heap(作用较小) 卡常记录: 1.把mult ...
分类:
其他好文 时间:
2018-07-09 19:49:55
阅读次数:
201
判断一棵树里是否有两个节点的值之和等于某个值。 653. Two Sum IV - Input is a BST Given a Binary Search Tree and a target number, return true if there exist two elements in th ...
分类:
其他好文 时间:
2018-07-08 18:01:01
阅读次数:
137
[TestClass] public class UnitTest1 { [TestMethod] public void TestMethod1() { var key = "cheayeon"; var iv = "encoding"; var text =... ...
分类:
微信 时间:
2018-07-07 13:41:29
阅读次数:
418