码迷,mamicode.com
首页 >  
搜索关键字:palindrome numbers    ( 9163个结果
Palindromic Numbers LightOJ - 1205
原题链接 考察:数位dp 思路: 求回文数字的个数. dfs参数: 1.pos 枚举到第几位 2.len 回文数的长度. 其实不需要变量记录是否合法,不合法的不取搜就行了. ##Code #include <iostream> #include <cstring> using namespace s ...
分类:其他好文   时间:2021-06-02 19:35:00    阅读次数:0
每日算法-Shell-有效电话号码
给定一个包含电话号码列表(一行一个电话号码)的文本文件 file.txt,写一个单行 bash 脚本输出所有有效的电话号码。 你可以假设一个有效的电话号码必须满足以下两种格式: (xxx) xxx-xxxx 或 xxx-xxx-xxxx。(x 表示一个数字) 你也可以假设每行前后没有多余的空格字符。 ...
分类:编程语言   时间:2021-06-02 10:54:40    阅读次数:0
数据结构 03-树2 List Leaves (25 分)
Given a tree, you are supposed to list all the leaves in the order of top down, and left to right. Input Specification: Each input file contains one t ...
分类:其他好文   时间:2021-05-24 14:03:04    阅读次数:0
数据结构 02-线性结构4 Pop Sequence (25 分)
Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s ...
分类:其他好文   时间:2021-05-24 13:43:08    阅读次数:0
【unity2D】API-学习记录12-四元数类Quaternion
目标 了解并能够应用某些方法来旋转物体。 API对Quaternion的(部分)说明 Quaternion Description 描述 Quaternions are used to represent rotations. 四元数用于表示旋转。 They are compact, don't s ...
分类:编程语言   时间:2021-05-24 08:25:35    阅读次数:0
0906. Super Palindromes (H)
Super Palindromes (H) 题目 Let's say a positive integer is a super-palindrome if it is a palindrome, and it is also the square of a palindrome. Given tw ...
分类:其他好文   时间:2021-05-24 02:27:55    阅读次数:0
关于allowbackup漏洞
在androidmanifest.xml文件中 则存在allowbackup漏洞 该漏洞是怎么利用的呢,或者说危害在哪里呢? 借用一下大佬的例子:https://blog.csdn.net/zihao2012/article/details/44220389 某IT男一直暗恋部门某女神,一天女神手机 ...
分类:其他好文   时间:2021-05-04 16:10:27    阅读次数:0
剑指offer-数组中的重复数组
import java.util.*; public class Solution { /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param numbers int整型一维数组 * @return int整型 */ public int du ...
分类:编程语言   时间:2021-05-03 12:09:56    阅读次数:0
ural1297 palindrome
【题意】 求最长回文子串 【分析】 把原字符串翻过来接到后面,中间放一个特殊字符 然后枚举每一个点作为回文串的中心,计算当前位置的后缀和对应的延长位置上的后缀的最长公共前缀 具体的:分类讨论如果i为奇数长度的中心lcp(i,n-i-1),i为偶数长度回文串的中心的一个lcp(i,n-i) 【代码】 ...
分类:其他好文   时间:2021-04-28 12:01:17    阅读次数:0
用VBA提取字符串中的数字
上一篇讲了用 python 提取字符串中的数字,这次用VBA来事项。总体思路和 python 是一样的,代码如下: Option Explicit Sub GetNumbers() Dim from_string As String, convert_numbers As String Dim i, ...
分类:编程语言   时间:2021-04-27 14:37:45    阅读次数:0
9163条   上一页 1 2 3 4 ... 917 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!