- 博客(43)
- 资源 (2)
- 收藏
- 关注
原创 nyoj 22 素数求和问题 【素数】
素数求和问题时间限制:3000 ms | 内存限制:65535 KB难度:2描述现在给你N个数(0<N<1000),现在要求你写出一个程序,找出这N个数中的所有素数,并求和。输入第一行给出整数M(0每组测试数据第一行给你N,代表该组测试数据的数量。接下来的N个数为要测试的数据,每个数小于1000输出每组测试数据结果占一行,输出给出的测试数
2016-05-31 23:17:49 544
原创 A. Dima and Guards 【思维 好题】
Dima and GuardsDescriptionNothing has changed since the last round. Dima and Inna still love each other and want to be together. They've made a deal with Seryozha and now they need to make a d
2016-05-31 19:11:00 345
原创 hdoj 2087 剪花布条 【字符串】
剪花布条Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 14751 Accepted Submission(s): 9339Problem Description一块花布条,里面有些图案,另有一块直接可
2016-05-31 18:54:29 277
原创 CF Watchmen 【思维+数学】
E - WatchmenTime Limit:3000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionWatchmen are in a danger and Doctor Manhattan together with his fri
2016-05-30 23:39:02 433
原创 周练cf G - Restoring Painting 【数学 规律】
G - Restoring PaintingTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionVasya works as a watchman in the gallery. Unfortunately,
2016-05-29 22:12:05 632
原创 周练L - Pouring Rain 【数学】
L - Pouring RainTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionA lot of people in Berland hates rain, but you do not. Rain pac
2016-05-29 20:58:33 351
原创 13周练J - Little Artem and Presents【规律】
J - Little Artem and PresentsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionLittle Artem got n stones on his birthday and now wa
2016-05-29 20:55:49 272
原创 13周练 B - Wet Shark and Bishops 【矩阵对角线+组合】
B - Wet Shark and BishopsTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionToday, Wet Shark is given n bishops on a 1000 by 1000
2016-05-29 20:45:39 368
原创 13周练 H - Bear and Game 【模拟】
H - Bear and GameTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionBear Limak likes watching sports on TV. He is going to watch a
2016-05-26 14:14:02 398
原创 13周练 F - Infinite Sequence 【数列性质】
F - Infinite SequenceTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionVasya likes everything infinite. Now he is studying the pr
2016-05-26 14:03:18 415
原创 13周练 D - Beautiful Paintings 【升数列】
D - Beautiful PaintingsTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionThere are n pictures delivered for the new exhibition. T
2016-05-26 12:43:02 489
原创 2016.13周 周练 C - Joysticks 【CF】
C - JoysticksTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionFriends are going to play console. They have two joysticks and onl
2016-05-25 19:29:23 389
原创 2016.13周 周练 K - Holidays 【CF】
K - HolidaysTime Limit:1000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionOn the planet Mars a year lasts exactly n days (there are no leap years on Mars). But M
2016-05-25 19:18:35 343
原创 2016.13周 周练A - Wet Shark and Odd and Even【CF】
A - Wet Shark and Odd and EvenTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit StatusDescriptionToday, Wet Shark is given n integers. Using any o
2016-05-25 19:09:35 398
原创 nyoj 773 开方数
开方数时间限制:500 ms | 内存限制:65535 KB难度:3描述现在给你两个数 n 和 p ,让你求出 p 的开 n 次方。输入每组数据包含两个数n和p。当n和p都为0时表示输入结束。(1输出对于每个输出对用输出开方后的结果k(结果小于10^9)。样例输入2 163 277 43571861840213822045440 0
2016-05-24 11:57:44 657
原创 hdoj 1042 N!
N!Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(s): 73503 Accepted Submission(s): 21308Problem DescriptionGiven an integer N
2016-05-21 11:35:28 278
原创 nyoj 28 大数阶乘
大数阶乘时间限制:3000 ms | 内存限制:65535 KB难度:3描述我们都知道如何计算一个数的阶乘,可是,如果这个数很大呢,我们该如何去计算它并输出它?输入输入一个整数m(0输出输出m的阶乘,并在输出结束之后输入一个换行符样例输入50样例输出304140932017133780436126081660647688443
2016-05-21 11:28:00 324
原创 hdoj 1865 1sting 【大数斐波那契】
1stingTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4763 Accepted Submission(s): 1784Problem DescriptionYou will be given a
2016-05-21 09:28:55 466
原创 nyoj 655 光棍的yy 【大数斐波那契】
光棍的yy时间限制:1000 ms | 内存限制:65535 KB难度:2描述yy经常遇见一个奇怪的事情,每当他看时间的时候总会看见11:11,这个很纠结啊。现在给你m个1,你可以把2个1组合成一个2,这样就不是光棍了,问这样的组合有多少种??例如(111 可以拆分为 111 12 21 有三种)输入第一行输入一个n表示有
2016-05-21 00:22:26 587 1
原创 nyoj 73 比大小 【strcmp+if else】
比大小时间限制:3000 ms | 内存限制:65535 KB难度:2描述给你两个很大的数,你能不能判断出他们两个数的大小呢?比如123456789123456789要大于-123456输入每组测试数据占一行,输入两个不超过1000位的10进制整数a,b数据保证输入的a,b没有前缀的0。如果输入0 0表示输入结束。测试数据组数
2016-05-20 19:42:08 300
原创 hdoj 1002 A + B Problem II 【大数A+B】
A + B Problem IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 308540 Accepted Submission(s): 59647Problem DescriptionI have a v
2016-05-19 18:47:13 516
原创 poj & hdoj 1551 Cable master (二分+精度)
Cable masterTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 35226 Accepted: 7504DescriptionInhabitants of the Wonderland have decided to hold a regional
2016-05-18 20:32:11 562
原创 acm 2016/5/18 hpu15级练习 J
J - FootballTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 96ADescriptionPetya loves football very much. One day, as he was watching a f
2016-05-18 14:08:15 427
原创 acm 2016/5/18 hpu15级练习 G
G - Toy ArmyTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 84ADescriptionThe hero of our story, Valera, and his best friend Arcady are s
2016-05-18 14:00:30 694
原创 acm 2016/5/18 hpu15级练习 C
D - Flea travelTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 75ADescriptionCan you imagine our life if we removed
2016-05-18 13:54:27 328
原创 acm 2016/5/18 hpu15级练习 B
B - Petya and CountrysideTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 66BDescriptionLittle Petya often travels t
2016-05-18 13:44:48 363
原创 acm 2016/5/18 hpu15级练习 A
A - Petya and JavaTime Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uSubmit Status Practice CodeForces 66ADescriptionLittle Petya has recently started att
2016-05-18 13:32:42 305
原创 hdoj 2056 Rectangles(矩形) 【几何】
RectanglesTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20290 Accepted Submission(s): 6574Problem DescriptionGiven two rect
2016-05-17 16:47:55 1094
原创 hdoj 2049 不容易系列之(4)——考新郎 【排列组合+全排列】
不容易系列之(4)——考新郎Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 31322 Accepted Submission(s): 11388Problem Description国庆期间,省城HZ
2016-05-17 14:55:38 331
原创 hdoj 2055 An easy problem (单个字符)
An easy problemTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 20138 Accepted Submission(s): 13391Problem Descriptionwe define f(
2016-05-16 19:51:37 327
原创 strcmp 函数
函数简介原型:extern int strcmp(const char *s1,const char * s2); 用法:#include 功能:比较字符串s1和s2。 说明: 当s1s2时,返回值>0 , 即:两个字符串自左向右逐个字符相比(按ASCII值大小相比较),直到出现不同的字符或遇'\0'为止。如: "A""A" "computer">"compare" 特别注意:strcmp(co
2016-05-14 19:34:47 483
原创 hdoj 2053 Switch Game
Switch GameTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15030 Accepted Submission(s): 9176Problem DescriptionThere are man
2016-05-12 11:32:05 414
原创 hdoj 2052 Picture
PictureTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 24258 Accepted Submission(s): 12334Problem DescriptionGive you the wid
2016-05-12 11:08:33 419
原创 hdoj 2051 Bitset (进制转换)
BitsetTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/3 2768 K (Java/OthersTotal Submission(s): 19106 Accepted Submission(s): 14361Problem DescriptionGive you a
2016-05-12 10:33:52 379
原创 hdoj 2050 折线分割平面 (递推)
折线分割平面Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24759 Accepted Submission(s): 16815Problem Description我们看到过很多直线分割平面的题目,
2016-05-12 09:54:58 485
原创 hdoj 2048 神、上帝以及老天爷(递推,全错排)
神、上帝以及老天爷Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32717 Accepted Submission(s): 13379Problem DescriptionHDU 2006'10 AC
2016-05-10 16:51:15 726
原创 百科--全错排列
全错位排列 编辑词条B 添加义项 ?全错位排列指即被著名数学家欧拉(Leonhard Euler,1707-1783)称为组合数论的一个妙题的"装错信封问题"。基本信息中文名称全错位排列提出者欧拉 领 域数学
2016-05-10 15:23:28 748
翻译 hdoj 2047 阿牛的EOF牛肉串
阿牛的EOF牛肉串Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 29848 Accepted Submission(s): 14018Problem Description今年的ACM暑期集训队一共有
2016-05-06 13:42:58 517
原创 hdoj 5048 序列变换 (二分查找)
序列变换Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 979 Accepted Submission(s): 449Problem Description给定序列A={A1,A2,...,An},
2016-05-03 14:28:02 527
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人