- 博客(28)
- 收藏
- 关注
原创 ffmpeg安装及使用
给大家安利一个编解码神器 ffmpeg,ffmpeg是一个免费开源的编解码工具,大部分视屏播放软件都是以它作为内核的。windows环境下ffmpeg安装及使用访问:www.ffmpeg.org点击download。ffmpeg我们可以下载他的源文件自己进行编译使用,也可以下载编译好的软件进行使用。我们在这下载编译好的软件下载对应的版本就好解压到自己的盘中。配置环境
2016-04-23 15:09:53
363
原创 leetcode 009 Palindrome Number
9. Palindrome Number Total Accepted: 119423 Total Submissions: 378311Difficulty: Easy Determine whether an integer is a palindrome. Do this without extra space.click to show sp
2016-04-21 20:21:58
276
原创 leetcode 007 Reverse Integer
package com.archer;/** * * @author Archer * * 题意:高位换低位 低位换高位 * 题解: java int 32位 -2147483648----2147483648 * 考虑溢出的问题,可能原数不会溢出,但是转职后会溢出 如测试数据中的1534236469 */public class Solu
2016-04-19 19:57:37
262
原创 leetcode 005 Longest Palindromic Substring(java)
leetcode 005 Longest Palindromic Substring(java)5. Longest Palindromic SubstringMy SubmissionsQuestionTotal Accepted: 87802 Total Submissions: 399054 Difficulty: Medium Giv
2016-01-15 17:59:53
270
原创 leetcode 004 Median of Two Sorted Arrays(java)
Median of Two Sorted ArraysMy SubmissionsQuestionTotal Accepted: 75699 Total Submissions: 428881 Difficulty: Hard There are two sorted arrays nums1 and nums2 of size m and n resp
2015-12-13 22:03:50
245
原创 leetcode 003 Longest Substring Without Repeating Characters(java)
Longest Substring Without Repeating CharactersMy SubmissionsQuestionTotal Accepted: 111400 Total Submissions: 532861 Difficulty: Medium Given a string, find the length of the lon
2015-12-09 22:55:52
289
原创 leetcode 002 Add Two Numbers(java)
leetcode 002 Add Two NumbersAdd Two NumbersMy SubmissionsQuestionTotal Accepted: 105768 Total Submissions: 494750 Difficulty: Medium You are given two linked lists represen
2015-12-09 00:27:50
336
原创 leetcode 001 Tow Sum(java)
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to
2015-12-08 21:42:34
361
原创 USACO 1.5 Prime Palindromes
Prime PalindromesThe number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all pri
2015-10-15 22:47:01
375
原创 USACO 1.5 Number Triangles
Number TrianglesConsider the number triangle shown below. Write a program that calculates the highest sum of numbers that can be passed on a route that starts at the top and ends somewhere on th
2015-09-11 14:46:28
374
原创 USACO 1.4 Mother's Milk
Mother's MilkFarmer John has three milking buckets of capacity A, B, and C liters. Each of the numbers A, B, and C is an integer from 1 through 20, inclusive. Initially, buckets A and B are empty
2015-09-10 01:03:27
332
原创 USACO 1.4 Arithmetic Progressions
Arithmetic ProgressionsAn arithmetic progression is a sequence of the form a, a+b, a+2b, ..., a+nb where n=0,1,2,3,... . For this problem, a is a non-negative integer and b is a positive integer.
2015-09-10 00:41:58
249
原创 USACO 1.3 Ski Course Design
Ski Course DesignFarmer John has N hills on his farm (1 Unfortunately, FJ has just found out about a new tax that will be assessed next year on farms used as ski training camps. Upon careful r
2015-09-09 01:04:25
298
原创 USACO 1.3 Wormholes
WormholesFarmer John's hobby of conducting high-energy physics experiments on weekends has backfired, causing N wormholes (2 According to his calculations, Farmer John knows that his wormholes
2015-09-08 01:03:33
421
原创 USACO 1.3 Combination Lock
Combination LockFarmer John's cows keep escaping from his farm and causing mischief. To try and prevent them from leaving, he purchases a fancy combination lock to keep his cows from opening the p
2015-09-05 19:43:01
351
原创 USACO 1.3 Prime Cryptarithm
Prime CryptarithmThe following cryptarithm is a multiplication problem that can be solved by substituting digits from a specified set of N digits into the positions marked with *. If the set of
2015-09-04 16:05:29
306
原创 USACO 1.3 Barn Repair
Barn RepairIt was a dark and stormy night that ripped the roof and gates off the stalls that hold Farmer John's cows. Happily, many of the cows were on vacation, so the barn was not completely f
2015-09-04 00:25:23
243
原创 USACO 1.3 Mixing Milk
Mixing MilkThe Merry Milk Makers company buys milk from farmers, packages it into attractive 1- and 2-Unit bottles, and then sells that milk to grocery stores so we can each start our day with d
2015-09-03 21:22:27
345
原创 USACO 1.2 Dual Palindromes
Dual PalindromesMario Cruz (Colombia) & Hugo Rickeboer (Argentina)A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a pali
2015-09-03 14:45:11
274
原创 USACO 1.2 Palindromic Squares
Palindromic SquaresRob KolstadPalindromes are numbers that read the same forwards as backwards. The number 12321 is a typical palindrome.Given a number base B (2 <= B <= 20 base 10), print a
2015-09-01 21:18:37
293
原创 USACO 1.2 Name That Number
Name That NumberAmong the large Wisconsin cattle ranchers, it is customary to brand cows with serial numbers to please the Accounting Department. The cow hands don't appreciate the advantage of
2015-08-29 14:38:46
277
原创 USACO 1.2 Transformations
TransformationsA square pattern of size N x N (1 <= N <= 10) black and white square tiles is transformed into another square pattern. Write a program that will recognize the minimum transformati
2015-08-29 08:45:56
263
原创 USACO 1.1 Milking Cows
Milking CowsThree farmers rise at 5 am each morning and head for the barn to milk three cows. The first farmer begins milking his cow at time 300 (measured in seconds after 5 am) and ends at tim
2015-08-29 06:16:26
283
原创 USACO 1.1 Broken Necklace
Broken NecklaceYou have a necklace of N red, white, or blue beads (3 1 2 1 2 r b b r b r r b r
2015-08-29 01:30:17
281
原创 USACO 1.1 Friday the Thirteenth
Friday the ThirteenthIs Friday the 13th really an unusual event?That is, does the 13th of the month land on a Friday less often than on any other day of the week? To answer this question, wr
2015-08-28 18:47:37
255
原创 USACO 1.1 Greedy Gift Givers
Greedy Gift GiversA group of NP (2 ≤ NP ≤ 10) uniquely named friends has decided to exchange gifts of money. Each of these friends might or might not give some money to any or all of the other f
2015-08-28 16:11:56
300
原创 USACO 1.1 Your Ride Is Here
今天开切usaco题解:简单的字符串处理/*ID: cxq_xia1PROG: rideLANG: C++*/#include #include #include using namespace std;int main(){ freopen("ride.in","r",stdin); freopen("ride.out","w",stdou
2015-08-28 13:07:59
405
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人