POJ
不想悲伤到天明
这个作者很懒,什么都没留下…
展开
-
Drying
#include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std ; int const MAX = 1000 ; int const INF = 9999999; int n , k ; // wash cloth ; ...原创 2018-06-05 21:16:14 · 307 阅读 · 1 评论 -
城堡问题Poj(1164)
Description 1 2 3 4 5 6 7 ############################# 1 # | # | # | | # #####---#####---#---#####---# 2 # # | # # # # # #---#####---#...原创 2018-07-30 18:03:01 · 846 阅读 · 0 评论 -
To the Max POJ - 1050
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the whole array. The sum of a rectangle is the sum of...原创 2019-02-11 15:58:41 · 269 阅读 · 0 评论 -
POJ - 1664 放苹果
把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。 Output 对输入的每组数据M和N,用一行输出相应的K。 Sample Input 1 7 ...原创 2019-05-19 15:34:38 · 331 阅读 · 0 评论