![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数学
文章平均质量分 77
risker_2013
这个作者很懒,什么都没留下…
展开
-
hdu 2048 神、上帝以及老天爷
神、上帝以及老天爷 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 17316 Accepted Submission(s): 7379 Problem Description HDU 2006'10 ACM con原创 2013-08-06 20:51:20 · 647 阅读 · 0 评论 -
Codeforces Round #142 (Div. 2) B - T-primes
B. T-primes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output We know that prime numbers are positive integer原创 2014-04-03 16:01:43 · 798 阅读 · 0 评论 -
Codeforces Round #143 (Div. 2) B. Magic, Wizardry and Wonders
B. Magic, Wizardry and Wonders time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Vasya the Great Magician and原创 2014-04-08 12:46:02 · 1093 阅读 · 1 评论 -
UVA 10057 A mid-summer night's dream.
由中位数定理可知:如果n是奇数,A一定只有一个, 否则可以取a[q],a[q+1]闭区间之间的任何数。 #include #include #include #include using namespace std; int n,a[1000005]; int main() { int i,j,k,sum,ans,Max,Min; while(~s原创 2013-08-10 20:30:45 · 597 阅读 · 0 评论 -
nefu 630 Min Chain(扩展欧几里得)
题目: #include #include #include #include #include #include using namespace std; long long a,b; long long exgcd(long long m,long long &x,long long n,long long &y) { long long x1,y1,x0,y0; x0原创 2014-05-02 18:31:21 · 658 阅读 · 0 评论 -
zoj 3407 Doraemon's Cake Machine
Doraemon's Cake Machine Time Limit: 2 Seconds Memory Limit: 65536 KB One day, N kids got one cake (a cylinder in shape). They decided to divide the cake so that everyone can have one piec原创 2014-05-20 21:35:45 · 995 阅读 · 0 评论 -
zoj 3403 Strange Calendar III
Strange Calendar III Time Limit: 2 Seconds Memory Limit: 65536 KB As we know, in the Bzu planet and in the cc98 planet, people use special calendar which is similar to that used in the ea原创 2014-05-30 17:40:02 · 1179 阅读 · 0 评论 -
hdu 3306 Another kind of Fibonacci
Another kind of Fibonacci Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1513 Accepted Submission(s): 577 Problem Description A原创 2014-07-25 20:39:17 · 588 阅读 · 0 评论 -
hdu 2098 分拆素数和
#include #include #include #include const int N=10010; using namespace std; bool is[N]; int main() { int m,n,t,i,j,k; memset(is,1,sizeof(is)); is[0]=is[1]=0; for(i=4;i<=N;i+=2)原创 2014-07-31 19:08:23 · 714 阅读 · 0 评论 -
hdu 4861 Couple doubi 2014年多校联合第一场
Couple doubi Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 943 Accepted Submission(s): 453 Problem Description DouBiXp has原创 2014-07-31 17:41:52 · 564 阅读 · 0 评论 -
hdu
import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Integer n,N=102,i; BigInteger []f=new原创 2014-07-31 18:59:34 · 630 阅读 · 0 评论 -
nefu 628 Garden visiting(非降路径模板题)
#include #include #include #include #include #include using namespace std; typedef long long ll; const int Max=200005; int prime[Max],num,p[Max]; int cal(int n,int k) { int res=0; while(n>=k原创 2014-05-02 18:38:41 · 968 阅读 · 0 评论 -
Codeforces Round #140 (Div. 2) A. Where do I Turn?
点击打开题目链接 A. Where do I Turn? time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Trouble came from the原创 2014-03-31 18:16:56 · 680 阅读 · 0 评论 -
hdu 2045 不容易系列之(3)—— LELE的RPG难题
不容易系列之(3)—— LELE的RPG难题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 23452 Accepted Submission(s): 9305 Problem Description 人称“AC女原创 2013-08-06 20:55:36 · 465 阅读 · 0 评论 -
hdu 1163 Eddy's digital Roots
Eddy's digital Roots Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 3600 Accepted Submission(s): 2038 Problem Description The d原创 2013-08-31 15:52:52 · 508 阅读 · 0 评论 -
hdu 1164 Eddy's research I
Eddy's research I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 5201 Accepted Submission(s): 3127 Problem Description Eddy's i原创 2013-08-31 17:03:42 · 553 阅读 · 0 评论 -
hdu 1165 Eddy's research II
Eddy's research II Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 2576 Accepted Submission(s): 943 Problem Description As is kn原创 2013-08-31 17:39:06 · 702 阅读 · 0 评论 -
NEFU—OJ 454 美丽的数
美丽的数 Time Limit 1000ms Memory Limit 65536K description 有些数总是与众不同,它们认为自己比其它数美丽。数与数之间是怎样比美丽的呢?它们往往看谁拥有的质数数字多!例如333只有一个质数数字3,3563有两种质数数字3和5,而6不是质数数字。原创 2013-09-03 21:22:59 · 1041 阅读 · 0 评论 -
NEFU 2 猜想
猜想 Time Limit 3000ms Memory Limit 65536K description 哥德巴赫(Goldbach ]C.,1690.3.18~1764.11.20)是德国数学家;出生于格奥尼格斯别尔格(现名加里宁城);曾在英国牛津大学学习;原学法学,由于在欧洲各国访问期间原创 2014-02-28 11:44:55 · 546 阅读 · 0 评论 -
NEFU 120 梅森素数
梅森素数 Time Limit 1000ms Memory Limit 65536K description 由于梅森学识渊博,才华横溢,为人热情以及最早系统而深入地研究2p-1 型的数(其中p为素数),为了纪念他,数学界就把这种数称为“梅森数”;并以Mp 记之(其中M为梅森姓名的首字母),原创 2014-03-12 15:47:35 · 704 阅读 · 0 评论 -
Poj 2769 Reduced ID Numbers
Reduced ID Numbers Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 8632 Accepted: 3461 Description T. Chur teaches various groups of students at universi原创 2014-03-12 16:37:08 · 483 阅读 · 0 评论 -
UVA 10673 Play with Floor and Ceil
Theorem For any two integers x and k there exists two more integers p and q such that: It’s a fairly easy task to prove this theorem, so we’d not ask you to do that. We’d ask for something even ea原创 2013-10-27 11:58:38 · 825 阅读 · 0 评论 -
Codeforces Round #139 (Div. 2) E. Unsolvable
E. Unsolvable time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Consider the following equation: where sig原创 2014-03-27 18:23:21 · 658 阅读 · 0 评论 -
hdu 1250 Hat's Fibonacci(java大数)
点击打开题目链接 Hat's Fibonacci Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 7407 Accepted Submission(s): 2414 Problem Description原创 2014-07-31 19:02:24 · 782 阅读 · 0 评论