码迷,mamicode.com
首页 >  
搜索关键字:letters    ( 1345个结果
python练习程序(c100经典例17)
题目:输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。def foo(a): l=len(a); letters=0; space=0; digit=0; others=0; for i in range(0,l): num=ord...
分类:编程语言   时间:2014-09-13 09:22:44    阅读次数:228
Count words and letters-计算用户输入一行文本中的单词数和每个字母出现次数
Countwordsandletters-计算用户输入一行文本中的单词数和每个字母出现次数//Countwordsandletters #include<iostream> #include<cstring> #include<cstdlib> #include<cctype> usingnamespacestd; intmain() { intwords_count=1; intchar_count[26]=..
分类:其他好文   时间:2014-09-10 19:38:11    阅读次数:164
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-09-09 11:49:38    阅读次数:167
leetcode 之 Word Search
Word Search Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those...
分类:其他好文   时间:2014-09-06 22:34:14    阅读次数:261
Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:其他好文   时间:2014-09-06 18:40:43    阅读次数:224
LeetCode: Word Search
LeetCode: Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacen...
分类:其他好文   时间:2014-09-04 22:03:00    阅读次数:191
poj1625 ac自动机
Censored!Time Limit:5000MSMemory Limit:10000KTotal Submissions:8102Accepted:2191DescriptionThe alphabet of Freeland consists of exactly N letters. Eac...
分类:其他好文   时间:2014-09-04 18:38:49    阅读次数:151
Uva401Palindromes
PalindromesA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a pali....
分类:其他好文   时间:2014-09-04 00:01:57    阅读次数:310
LeetCode 18 Letter Combinations of a Phone Number
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Input:Digit st...
分类:其他好文   时间:2014-09-01 21:15:03    阅读次数:223
POJ 3096-Surprising Strings(set)
Surprising Strings Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 5940   Accepted: 3894 Description The D-pairs of a string of letters are the ordered pairs...
分类:其他好文   时间:2014-09-01 12:34:43    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!