
二分
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Trailing Zeroes (III)<二分>
Description You task is to find minimal natural number N, so that N! contains exactly Q zeroes on the trail in decimal notation. As you know N! = 1*2*...*N. For example, 5! = 120, 120 contains one原创 2016-07-23 16:35:15 · 1152 阅读 · 0 评论 -
二分
Description Vasiliy likes to rest after a hard work, so you may often meet him in some bar nearby. As all programmers do, he loves the famous drink "Beecola", which can be bought in n different s原创 2016-08-18 17:22:20 · 404 阅读 · 0 评论 -
zzhioj1919
Description 晴天想把一个包含n个整数的序列a分成连续的若干段,且和最大的一段的值最小,但他有强迫症,分的段数不能超过m段,然后他就不会分了。。。他想问你这个分出来的和最大的一段的和最小值是多少? Input 第一行输入一个整数t,代表有t组测试数据。 每组数据第一行为两个整数n,m分别代表序列的长度和最多可分的段数。 接下来一行包含n个整数表示序列。 0原创 2016-08-17 19:29:45 · 409 阅读 · 0 评论 -
Can you solve this equation?<hdoj2199>
Problem Description Now,given the equation 8*x^4 + 7*x^3 + 2*x^2 + 3*x + 6 == Y,can you find its solution between 0 and 100; Now please try your lucky. Input The first line of the inp原创 2016-07-26 21:23:24 · 293 阅读 · 0 评论 -
Can you find it?<hdoj2141>
Problem Description Give you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj原创 2016-07-26 21:31:02 · 356 阅读 · 0 评论 -
The Frog's Games<hdoj4004>
Problem Description The annual Games in frogs' kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog a原创 2016-07-26 21:34:36 · 1197 阅读 · 0 评论 -
Multiplication Table
Description Bizon the Champion isn't just charming, he also is very smart. While some of us were learning the multiplication table, Bizon the Champion had fun in his own manner. Bizon the Champion原创 2016-07-27 20:51:47 · 1165 阅读 · 0 评论 -
Red packet
Year is coming! Our big boss Wine93 will distribute some “Red Package”, just like Alipay and Wechat. Wine93 has m yuan, he decides to distribute them to n people and everyone can get some money(0 yua原创 2016-07-27 20:50:21 · 2058 阅读 · 0 评论 -
Pie<poj3122>
Description My birthday is coming up and traditionally I'm serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my par原创 2016-07-27 20:47:28 · 1702 阅读 · 0 评论 -
River Hopscotch<poj3528>
Description Every year the cows hold an event featuring a peculiar version of hopscotch that involves carefully jumping from rock to rock in a river. The excitement takes place on a long, straigh原创 2016-07-27 20:43:52 · 350 阅读 · 0 评论 -
Expanding Rods<poj1905>
Description When a thin rod of length L is heated n degrees, it expands to a new length L' = (1+n*C)*L, where C is the coefficient of heat expansion. When a thin rod is mounted on two solid wall原创 2016-07-27 20:39:46 · 397 阅读 · 0 评论 -
Crossed Ladders<poj2507题目一样>
Description A narrow street is lined with tall buildings. An x foot long ladder is rested at the base of the building on the right side of the street and leans on the building on the left side. A y原创 2016-07-27 20:36:27 · 782 阅读 · 0 评论 -
Cable master<hdoj1551>
Problem Description Inhabitants of the Wonderland have decided to hold a regional programming contest. The Judging Committee has volunteered and has promised to organize the most honest contest eve原创 2016-07-26 21:28:00 · 343 阅读 · 0 评论 -
Codeforces 237C Primes on Interval
Description You've decided to carry out a survey in the theory of prime numbers. Let us remind you that a prime number is a positive integer that has exactly two distinct positive integer divisors.原创 2016-10-21 22:23:18 · 483 阅读 · 0 评论