数学----------------------------
文章平均质量分 81
没有能与不能只有想与不想
这个作者很懒,什么都没留下…
展开
-
1712: 编程语言 (规律题)
1712: 编程语言时间限制: 1 Sec 内存限制: 128 MB提交: 16 解决: 11[提交][状态][讨论版]题目描述小明宿舍有6个人,都是学习计算机的,每个人都会一定数量的编程语言(比如:c、c++、java、C#、php、js等等)。姑且把他们六人叫做:老大、老二、老三、老四、老五和小明他们直接学习的语言错综复杂,有以下一些关系,原创 2015-08-25 20:48:44 · 844 阅读 · 1 评论 -
1708: A - B
1708: A - B时间限制: 1 Sec 内存限制: 128 MB提交: 81 解决: 32[提交][状态][讨论版]题目描述做惯了A+B的我们,要不要来点新鲜的?那么来个A-B吧?输入第一行输入一个N,代表有N组测试数据,接下来N行,每行输入两个整数A和B,注意是:整数、整数、整数,重要的话一定要说三遍!(题目保证A和B均在原创 2015-08-25 19:50:11 · 290 阅读 · 0 评论 -
1710: 最后一个1 (进制转换变形)
1710: 最后一个1时间限制: 1 Sec 内存限制: 128 MB提交: 59 解决: 35[提交][状态][讨论版]题目描述对于一个十进制的数字x,将他转化为2进制,他的2进制将由0和1组成,求里面的最后一个1在第几位输入第一行输入T,代表T组数据,接下来T行,每行输入一个X。00输出输入x的2进原创 2015-08-25 20:41:57 · 410 阅读 · 0 评论 -
空心三角形
空心三角形Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 30632 Accepted Submission(s): 8458Problem Description把一个字符三角形掏空,就能节省材料成本原创 2015-07-27 22:55:50 · 338 阅读 · 0 评论 -
矩形A + B
矩形A + BTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5222 Accepted Submission(s): 4061Problem Description给你一个高为n ,宽为m列的网格,计原创 2015-08-01 23:45:53 · 406 阅读 · 0 评论 -
Can you solve this equation?
Can you solve this equation?Time Limit : 2000/1000ms (Java/Other) Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 113 Accepted Submission(s) : 69Problem DescriptionNo原创 2015-07-30 23:20:09 · 330 阅读 · 0 评论 -
18岁生日
18岁生日Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 23434 Accepted Submission(s): 7503Problem DescriptionGardon的18岁生日就要到了,他当原创 2015-07-27 22:35:19 · 558 阅读 · 0 评论 -
1700: 做不出来踢协会!!!
1700: 做不出来踢协会!!!时间限制: 1 Sec 内存限制: 128 MB提交: 289 解决: 33[提交][状态][讨论版]题目描述这是今天最水的一道题,如果没写出来的,呵呵,踢协会。给你两个整数a和b。输出较大的数,若两个数相等输出任一个都可以。这么水啊。。。输入输入有多组测试数据。每组数据有a和b两个整数。小提示:数据保证不会有前导原创 2015-08-15 12:10:54 · 495 阅读 · 0 评论 -
A Curious Matt 5112
A Curious MattTime Limit: 2000/2000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 970 Accepted Submission(s): 506Problem DescriptionThere is a原创 2015-08-16 20:51:13 · 424 阅读 · 0 评论 -
Little Zu Chongzhi's Triangles 5135(数学)
Little Zu Chongzhi's TrianglesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others)Total Submission(s): 738 Accepted Submission(s): 397Problem Descriptio原创 2015-08-16 21:55:09 · 526 阅读 · 0 评论 -
悼念512汶川大地震遇难同胞——选拔志愿者 2188 (数学博弈)
悼念512汶川大地震遇难同胞——选拔志愿者Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6958 Accepted Submission(s): 4405Problem Description对于四川原创 2015-09-07 17:30:08 · 304 阅读 · 0 评论 -
进制转换 2031 (进制转换)
进制转换Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 32285 Accepted Submission(s): 17934Problem Description输入一个十进制数N,将它转换成R进制数原创 2015-09-09 22:19:25 · 441 阅读 · 0 评论 -
THE DRUNK JAILER 1218
THE DRUNK JAILERTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 25129 Accepted: 15772DescriptionA certain prison contains a long hall of n cells, each rig原创 2015-08-19 21:09:06 · 334 阅读 · 0 评论 -
汉诺塔III 2064 (递推+数学)
汉诺塔IIITime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11942 Accepted Submission(s): 5451Problem Description约19世纪末,在欧州的商店中出售一种智力玩具原创 2015-08-21 10:24:03 · 439 阅读 · 0 评论 -
汉诺塔IV (递推+数学)
汉诺塔IVTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4989 Accepted Submission(s): 3631Problem Description还记得汉诺塔III吗?他的规则是这样的:不允许直原创 2015-08-21 10:25:18 · 477 阅读 · 0 评论 -
Sum Up 2729 (进制模拟) 好题
Sum UpTime Limit: 2 Seconds Memory Limit: 65536 KB Vivid has stored a piece of private information, which consisted of a serial of integers in a secret number format. All the stored num原创 2015-09-26 21:24:40 · 448 阅读 · 0 评论 -
三角形 1249 (打表+数学)
三角形Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5828 Accepted Submission(s): 3953Problem Description用N个三角形最多可以把平面分成几个区域?原创 2015-09-10 20:01:12 · 436 阅读 · 0 评论 -
汉诺塔VII 1997 (技巧+递推)
汉诺塔VIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1261 Accepted Submission(s): 838Problem Descriptionn个盘子的汉诺塔问题的最少移动次数是2^n-1,原创 2015-08-21 11:54:11 · 498 阅读 · 0 评论 -
汉诺塔II (递推+数学)
汉诺塔IITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 6234 Accepted Submission(s): 3047Problem Description经典的汉诺塔问题经常作为一个递归的经典例题存在。原创 2015-08-21 10:52:25 · 697 阅读 · 0 评论 -
Tian Ji -- The Horse Racing 2287 (好题 数学逻辑)
Tian Ji -- The Horse RacingTime Limit: 5000MS Memory Limit: 65536KTotal Submissions: 12344 Accepted: 3807DescriptionHere is a famous story in Chinese history. T原创 2015-09-12 13:49:19 · 343 阅读 · 0 评论 -
Baskets of Gold Coins 2401 (简单数学题)
Baskets of Gold CoinsTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1860 Accepted Submission(s): 1106Problem DescriptionYou原创 2015-09-12 14:26:02 · 469 阅读 · 0 评论 -
Raising Modulo Numbers 1995 (快速幂+大数)
Raising Modulo NumbersTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 5473 Accepted: 3171DescriptionPeople are different. Some secretly read magazines ful原创 2015-08-22 13:27:20 · 377 阅读 · 0 评论 -
汉诺塔V 1995 (数学+打表+递归)
汉诺塔VTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3407 Accepted Submission(s): 1994Problem Description用1,2,...,n表示n个盘子,称为1号盘,2号原创 2015-08-21 11:25:06 · 525 阅读 · 0 评论 -
Strange fuction 2899 (二分+数学求导)
Strange fuctionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4717 Accepted Submission(s): 3383Problem DescriptionNow, here is a原创 2015-08-21 15:50:57 · 293 阅读 · 0 评论 -
Friend 1719 (数学+技巧+规律)
FriendTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2200 Accepted Submission(s): 1103Problem DescriptionFriend number are d原创 2015-08-23 09:12:27 · 347 阅读 · 0 评论 -
测试你是否和LTC水平一样高 1407 (简单数学题)
测试你是否和LTC水平一样高Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15141 Accepted Submission(s): 4982Problem Description大家提到LTC都佩服原创 2015-09-12 21:03:37 · 607 阅读 · 0 评论 -
盐水的故事 1408 (简单递推)
盐水的故事Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 15432 Accepted Submission(s): 3751Problem Description挂盐水的时候,如果滴起来有规律,先是滴原创 2015-09-12 21:29:22 · 522 阅读 · 0 评论 -
nyoj 阶乘因式分解(二) 70 (数学)
阶乘因式分解(二)时间限制:3000 ms | 内存限制:65535 KB难度:3描述 给定两个数n,m,其中m是一个素数。将n(0注:^为求幂符号。 输入第一行是一个整数s(0随后的s行, 每行有两个整数n,m。 输出输出m的个数样例输入3100 516 21000000000 13样例输出24原创 2015-10-16 20:10:28 · 325 阅读 · 0 评论 -
nyoj 阶乘之和 91 (数学)
阶乘之和时间限制:3000 ms | 内存限制:65535 KB难度:3描述 给你一个非负数整数n,判断n是不是一些数(这些数不允许重复使用,且为正数)的阶乘之和,如9=1!+2!+3!,如果是,则输出Yes,否则输出No;输入第一行有一个整数0每组测试数据有一个正整数n输出如果符合条件,输出Yes,否则输出No;样例输入2910样例输出原创 2015-10-16 20:43:27 · 356 阅读 · 0 评论 -
codeforces round The Monster and the Squirrel 529B (数学规律)
The Monster and the SquirrelTime Limit: 1000MS Memory Limit: 262144KB 64bit IO Format: %I64d & %I64uSubmit StatusDescriptionAri the monster always wakes up very e原创 2015-11-05 20:28:52 · 612 阅读 · 0 评论 -
lightoj Harmonic Number (II) 1245 (数论)
Harmonic Number (II) DescriptionI was trying to solve problem '1234 - Harmonic Number', I wrote the following codelong long H( int n ) { long long res = 0; for( int i = 1; i n;原创 2015-11-07 21:35:53 · 1075 阅读 · 0 评论 -
lightoj 1249 Positive Negative Sign (数学计算)
数学题Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmit Status Practice LightOJ 1294DescriptionGiven two integers: n and m and n is divisible by 2m, you h原创 2015-11-08 13:56:05 · 339 阅读 · 0 评论 -
lightoj Answering Queries 1369 (数学转换&&技巧)
Answering QueriesTime Limit: 3000MSMemory Limit: 32768KB64bit IO Format: %lld & %lluSubmit StatusDescriptionThe problem you need to solve here is pretty simple. You are原创 2015-11-08 20:57:24 · 341 阅读 · 0 评论 -
A*B Problem 485 (数学题+九余数定理)
A*B Problem时间限制:1000 ms | 内存限制:65535 KB难度:2描述 设计一个程序求出A*B,然后将其结果每一位相加得到C,如果C的位数大于等于2,继续将C的各位数相加,直到结果是个一位数k。例如:6*8=48;4+8=12;1+2=3;输出3即可。输入第一行输入一个数N(0随后的N行每行给出两个非原创 2015-09-19 10:56:30 · 382 阅读 · 0 评论 -
Eddy's digital Roots 1163 (数学+九余数定理)
Eddy's digital RootsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5278 Accepted Submission(s): 2952Problem DescriptionThe digit原创 2015-09-19 11:26:34 · 353 阅读 · 0 评论 -
An easy problem 2601 (数学题+公式变形)
An easy problemTime Limit: 6000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8060 Accepted Submission(s): 1959Problem DescriptionWhen Teddy was原创 2015-09-19 19:20:09 · 440 阅读 · 0 评论 -
hdoj 时钟 2180 (数学)
时钟Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1732 Accepted Submission(s): 438Problem Description从a点b分到s点t分时针和分针重合多少次?原创 2015-11-10 19:31:56 · 538 阅读 · 0 评论 -
codeforces Line 7C (拓展欧几里德+思想 模板) 好题
C. LineDescriptionA line on the plane is described by an equation Ax + By + C = 0. You are to find any point on this line, whose coordinates are integer numbers from - 5·1018 to 5·1018 incl原创 2015-10-24 21:04:17 · 811 阅读 · 0 评论 -
lightoj Rooks 1005 (棋盘放车问题) (数学规律)
1005 - RooksPDF (English)StatisticsForumTime Limit: 1 second(s)Memory Limit: 32 MBA rook is a piece used in the game of chess which is played on a b原创 2015-10-24 19:05:34 · 576 阅读 · 0 评论 -
nyoj 1的个数 514 (数学)
1的个数时间限制:1000 ms | 内存限制:65535 KB难度:3描述给你两个数a和b,你的任务是计算出1在a和b之间出现的次数,比如说,如果a=1024,b=1032,那么a和b之间的数就是:1024 1025 1026 1027 1028 1029 1030 1031 1032则有10个1出现在这些数中。输入输入不会超过500行原创 2015-10-23 23:16:22 · 380 阅读 · 0 评论