![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
解题报告
文章平均质量分 62
Jax liu
http://liuyang1.com
展开
-
Leetcode-3169. Count Days Without Meetings 题解
Leetcode-3169. Count Days Without Meetings 题解原创 2024-06-02 14:56:33 · 390 阅读 · 0 评论 -
Codeforces 276C - Little Girl and Maximum Sum(题解)
Codeforces 276C 题解原创 2024-04-10 17:45:59 · 311 阅读 · 0 评论 -
POJ 1052 Plato's Block 解题报告
#include#include#include#include#includeint sur[4][10][25][25];int n;int cube[25][25][25], vis[25][25][25];void makesur() {int p, i, j, k;for (p = 0; p for (k = 2; k for (i转载 2018-01-18 21:18:09 · 304 阅读 · 0 评论 -
POJ 1083 Moving tables解题报告
#include#include#include#include#includeusing namespace std;int a[200];bool compare(int a, int b) {return a > b;}int max(int a, int b) {return a > b ? a : b;}int main原创 2017-05-11 12:51:58 · 224 阅读 · 0 评论 -
Topcoder SRM 663 Div2 Problem 500 - ABBA 解题报告
package test;import java.util.*;class ABBA{ static String canObtain(String initial,String target){ System.out.println("aa"); while(target.length()!=initial.length()){原创 2017-03-25 21:26:00 · 314 阅读 · 0 评论 -
Leetcode OJ Contest23 Minimum Time Difference_Leetcode539
//cpp. Leetcode OJ Contest23 Minimum Time Difference_Leetcode539//source codeclass Solution {public: int findMinDifference(vector& timePoints) { sort(timePoints.begin(),timePoints.原创 2017-03-13 23:00:35 · 241 阅读 · 0 评论 -
**POJ 1008 Maya Calendar解题报告
//POJ 1008 Maya Calendar解题报告//#include#include#include#include#include#include#includeusing namespace std;/*pop, no, zip, zotz, tzec, xul, yoxkin, mol, chen, yax, zac, ceh, mac原创 2017-03-23 12:12:35 · 386 阅读 · 0 评论 -
Leetcode OJ Contest23 Reverse String II_Leetcode541
源代码: //cpp.Leetcode OJ Contest23 Reverse String II_Leetcode541/*大意:就是我有一串字符,每2k个字符,只把前K个反转,计剩下还有len个字符,如果剩下的字符 大于K小于2K,那么只反转前K个,剩下 len-K个保持不动; 如果剩下的不足K个,那么len个全部反转; */#include#include#includ原创 2017-03-12 16:54:56 · 321 阅读 · 0 评论 -
Leetcode OJ contest24 543 Diameter of Binary Tree
/** * Definition for a binary tree node. * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * };原创 2017-03-19 20:53:01 · 247 阅读 · 0 评论 -
poj1664-放苹果-acm解题报告-递推
/* 设f(m,n)代表m个苹果放在n个盘子里的方案数, 讨论的递推结果为: m=1 或n=1,那么无论只有一个苹果还是一个盘子,都只有一种方案,即放在任意一个盘子里或所有苹果放在唯一 一个盘子里。 f(m,n)=1 m m=n, 放满只有一种方式,放不满时,如果只有一个盘子不妨,那么等同于f(m,n-1) ∴ f(m原创 2017-01-21 22:41:57 · 912 阅读 · 0 评论 -
poj1030-Rating-解题报告
http://www.cnblogs.com/CSGrandeur/archive/2012/08/27/2659132.html对于两场都参加的队伍,两场名次之和较小的排前面。对于只参加一场的队伍,在不冲突的情况下和与其该场同名次的且参加了两场的另一支队伍总排名相同。对于不满足上述的只参加一场的队伍,看是否可以插入一个位置,这个位置前面的队伍都是该场在其前面的转载 2017-01-17 23:53:27 · 490 阅读 · 0 评论 -
poj1031-Fence-acm解题报告
原题描述: FenceTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3658 Accepted: 1261DescriptionThere is an area bounded by a fence on some flat原创 2017-01-16 01:54:46 · 453 阅读 · 0 评论