2013年5月1日

HDU 4507 吉哥系列故事——恨7不成妻(数位DP)

摘要: 吉哥系列故事——恨7不成妻Time Limit: 1000/500 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 746Accepted Submission(s): 227Problem Description 单身! 依然单身! 吉哥依然单身! DS级码农吉哥依然单身! 所以,他生平最恨情人节,不管是214还是77,他都讨厌! 吉哥观察了214和77这两个数,发现: 2+1+4=7 7+7=7*2 77=7*11 最终,他发现原来这一切归根到底都是因为和7有... 阅读全文

posted @ 2013-05-01 15:28 kuangbin 阅读(4894) 评论(0) 推荐(2) 编辑

SPOJ 10606. Balanced Numbers (数位DP)

摘要: 题目链接:http://www.spoj.com/problems/BALNUM/这题要求出现的数字,偶数出现奇数次,奇数出现偶数次。用三进制表示0~9的状态//============================================================================// Name : SPOJ.cpp// Author : // Version :// Copyright : Your copyright notice// Description : Hello World in C++, Ansi-style... 阅读全文

posted @ 2013-05-01 11:32 kuangbin 阅读(810) 评论(0) 推荐(0) 编辑

HDU 3709 Balanced Number ZOJ 3416 Balanced Number(数位DP)

摘要: Balanced NumberTime Limit:5 Seconds Memory Limit:65536 KBA balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit as a box with weight indicated by the digit. When a pivot is placed at some digit of the number, the dis 阅读全文

posted @ 2013-05-01 10:52 kuangbin 阅读(769) 评论(0) 推荐(0) 编辑

HDU 3652 B-number(数位DP)

摘要: B-numberTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1231Accepted Submission(s): 651Problem DescriptionA wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub- string "13" and can be divided b 阅读全文

posted @ 2013-05-01 00:44 kuangbin 阅读(923) 评论(0) 推荐(0) 编辑

CF 55D Beautiful numbers(数位DP)

摘要: D. Beautiful numberstime limit per test4 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVolodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number isbeautifulif and only if it is divisible by each of its nonzero digits. We 阅读全文

posted @ 2013-05-01 00:20 kuangbin 阅读(2081) 评论(0) 推荐(1) 编辑

HDU 4352 XHXJ's LIS(数位DP)

摘要: XHXJ's LISTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 376Accepted Submission(s): 163Problem Description#define xhxj (Xin Hang senior sister(学姐))If you do not know xhxj, then carefully reading the entire description is very important.As the 阅读全文

posted @ 2013-05-01 00:03 kuangbin 阅读(3380) 评论(0) 推荐(1) 编辑

导航

JAVASCRIPT: