随笔分类 - 数学基础-基本技巧
摘要:题目链接:https://code.google.com/codejam/contest/32016/dashboard#s=p0Minimum Scalar ProductThis contest is open for practice. You can try ...
阅读全文
摘要:Semi-prime H-numbersTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 10466 Accepted: 4665DescriptionThis problem...
阅读全文
摘要:Raising Modulo NumbersTime Limit: 1000MS Memory Limit: 30000K Total Submissions: 9512 Accepted: 5783DescriptionPeople are dif...
阅读全文
摘要:Pseudoprime numbersTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 11470 Accepted: 4947DescriptionFermat’s theo...
阅读全文
摘要:X-factor ChainsTime Limit: 1000MS Memory Limit: 65536K Total Submissions: 7986 Accepted: 2546DescriptionGiven a positive inte...
阅读全文
摘要:Prime NumberTime limit 1000 ms Memory limit 131072 kBProblem DescriptionWrite a program which reads an integer n and prints the number...
阅读全文
摘要:原题链接:http://poj.org/problem?id=2429GCD & LCM InverseTime Limit: 2000MS Memory Limit: 65536K Total Submissions: 17639 Accep...
阅读全文
摘要:D. A Determined Cleanuptime limit per test1 second memory limit per test256 megabytesProblem DescriptionIn order to put away old thing...
阅读全文
摘要:传送门:http://codeforces.com/problemset/problem/16/CMonitortime limit per test0.5 second memory limit per test64 megabytesProblem Descrip...
阅读全文
摘要:Power of CryptographyTime Limit: 1000MS Memory Limit: 30000KDescriptionCurrent work in cryptography involves (among other things)...
阅读全文
摘要:B. The Eternal Immortality题目链接http://codeforces.com/contest/869/problem/B 解题心得:题意就是给出a,b,问(a!)/(b!)的个位数,要注意0,5两个数,只要a,b相差超过5个位数就只能是0,其...
阅读全文
摘要:FactorialProblem DescriptionThe most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers f...
阅读全文
摘要:完数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Problem Description完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身...
阅读全文
摘要:F(N)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5062 Accepted Submissi...
阅读全文
摘要:Max FactorTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionTo improve the organiz...
阅读全文
摘要:Examtime limit per test 1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn exam for n students will ...
阅读全文
摘要:HamburgersTime Li...
阅读全文
摘要:题目:1026: 丑数 Time Limit: 1000 MS Memory Limit: 65536 KBTotal Submit: 257 Accepted: 112 Page View: 1467Submit Status Discuss Description...
阅读全文
摘要:题目:Last non-zero Digit in N!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 79...
阅读全文
摘要:两种方法,第一种是将所有的素数筛选出来,第二种直接循环就行了(第二种更加的高效)。第一种方法其实就是先将素数筛选出来然后再计算,第二种是直接计算。第一种的代码#includeusing namespace std;const int Max = 1e7+7;bool ...
阅读全文