
老BOJ题解
文章平均质量分 82
Bupt_Luke
这个作者很懒,什么都没留下…
展开
-
老BOJ 03 Guess
GuessAccept:357 Submit:2244Time Limit:3000MS Memory Limit:65536KBDescriptionA competition was just over. It had 3 problems and n players. Each player had an ID number原创 2014-08-01 05:59:55 · 685 阅读 · 0 评论 -
老BOJ 13 K-based Numbers
K-based NumbersAccept:141 Submit:314Time Limit:1000MS Memory Limit:65536KBDescriptionLet’sconsiderK-basednumbers, containing exactlyNdigits. We define a num原创 2014-08-01 13:37:34 · 629 阅读 · 0 评论 -
老BOJ 12 Heavy Cargo
Heavy CargoAccept:85 Submit:228Time Limit:1000MS Memory Limit:65536KBDescriptionBig Johnsson Trucks Inc. is a company specialized in manufacturing big trucks. The原创 2014-08-01 13:33:22 · 830 阅读 · 0 评论 -
老BOJ 11 Counting
CountingAccept:100 Submit:807Time Limit:2000MS Memory Limit:65536KBDescription We are familiar with the game called “Counting 24”. Now it comes a problem that we wa原创 2014-08-01 12:53:40 · 577 阅读 · 0 评论 -
老BOJ 09 Maximum sum
Maximum sumAccept:247 Submit:825Time Limit:1000MS Memory Limit:65536KBDescriptionGiven a set of n integers: A={a1, a2,..., an}, we define a function d(A) as below:原创 2014-08-01 12:30:37 · 507 阅读 · 0 评论 -
老BOJ 08 Rightmost Digit
Rightmost DigitAccept:540 Submit:1841Time Limit:1000MS Memory Limit:65536KBProblem DescriptionGiven a positive integer N, you should output the most right digit of N^原创 2014-08-01 06:17:52 · 521 阅读 · 0 评论 -
老BOJ 07 Fence Repair
Fence RepairAccept:199 Submit:784Time Limit:1000MS Memory Limit:65536KBDescriptionFarmer John wants to repair a small length of the fence around the pasture. He measu原创 2014-08-01 06:17:40 · 606 阅读 · 0 评论 -
老BOJ 06 Flip Game
Flip GameAccept:132 Submit:648Time Limit:1000MS Memory Limit:65536KBDescriptionFlip game is played on a rectangular 4x4 field with two-sided pieces placed on each of原创 2014-08-01 06:12:34 · 622 阅读 · 0 评论 -
老BOJ 05 Permutation
PermutationAccept:304 Submit:994Time Limit:1000MS Memory Limit:65536KBDescription We all know that , when there are n positive integers (namely 1…n) , we can use th原创 2014-08-01 06:05:58 · 656 阅读 · 0 评论 -
老BOJ 16 棋盘分割
//DP枚举,注意输出用%f不可以用%lf#include#include#include#include#include#include#define ll long long#define inf 0xffffffusing namespace std;int a[9][9],bak[9][9][9][9];double dp[16][9][9][9][9];int原创 2014-08-03 00:39:47 · 688 阅读 · 0 评论