码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
Codeforces Round #265 (Div. 2) C. No to Palindromes!
Paul hates palindromes. He assumes that string s is tolerable if each its character is one of the first p letters of the English alphabet and s doesn't contain any palindrome contiguous substring ...
分类:其他好文   时间:2014-09-17 18:47:02    阅读次数:247
【POJ2739】Sum of Consecutive Prime Numbers
简单的素数打表,然后枚举。开始没注意n读到0结束,TLE了回。。下次再认真点。A过后讨论里面有个暴力打表过的,给跪了! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #inc...
分类:其他好文   时间:2014-09-16 23:38:11    阅读次数:331
Codeforces Round #266 (Div. 2) D. Increase Sequence
Peter has a sequence of integers a1,?a2,?...,?an. Peter wants all numbers in the sequence to equal h. He can perform the operation of "adding one on the segment [l,?r]": add one to all elements of t...
分类:其他好文   时间:2014-09-16 14:18:20    阅读次数:259
[leetcode] Valid Palindrome @ Python
原题地址:https://oj.leetcode.com/problems/valid-palindrome/题意:Given a string, determine if it is a palindrome, considering only alphanumeric characters an...
分类:编程语言   时间:2014-09-16 08:05:40    阅读次数:239
HDU 1492 The number of divisors(约数) about Humble Numbers(数学题)
HDU 1492 The number of divisors(约数) about Humble Numbers(数学题)...
分类:其他好文   时间:2014-09-15 19:32:29    阅读次数:190
1057. Stack (30)
/*to solve the problem ,i think we can use stack to maintain the numbers,and list to keep it sorted,which is very important to find the Median number....
分类:其他好文   时间:2014-09-15 19:07:19    阅读次数:181
UVA11461- Square Numbers
题目链接 题意:求a到b之间的平方数的数量 思路:暴力,水题 代码: #include #include #include #include #include using namespace std; const int MAXN = 100005; int vis[MAXN]; int judge(int n) { double a = ...
分类:其他好文   时间:2014-09-15 17:48:29    阅读次数:147
Exercise 1.11---1.12 Pascal's Triangle
1.11 F'ibonates函数的变种,略过。1.12题目:The following pattern of numbers is called Pascal's triangle. 1 1 1 1 2 1 1 3 3 11 4 6 4 1.......
分类:其他好文   时间:2014-09-15 17:25:09    阅读次数:227
无法定位程序输入点 K32GetProcessMemoryInfo于动态链接库kernel32.dll之上
这是由于GetProcessMemoryInfo在不同系统版本号不同导致的,官方说明如下: Remarks Starting with Windows 7 and Windows Server 2008 R2, Psapi.h establishes version numbers for the PSAPI functions. The PSAPI version number affect...
分类:其他好文   时间:2014-09-15 16:02:11    阅读次数:1127
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:其他好文   时间:2014-09-15 12:41:48    阅读次数:133
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!