问题 从键盘输入一个字符串(长度不超过30),统计字符串中非数字的个数,并将统计的结果显示在屏幕上,用EXE格式实现. 源程序 data segment hintinput db "please input a string:$";输入提示语 hintoutput db "non-number:$";输出提示语 str db 30,?,30 dup(?);将输入的字符串保存在str中 crlf db 0ah,0dh,'$';回车换行符 data ends code
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The length of num is less than 10002 and will be ≥ k. The given num does not contain any leading zero. Ex
给定一个以字符串表示的非负整数 num,移除这个数中的 k 位数字,使得剩下的数字最小.注意: num 的长度小于 10002 且 ≥ k. num 不会包含任何前导零.示例 1 :输入: num = "1432219", k = 3输出: "1219"解释: 移除掉三个数字 4, 3, 和 2 形成一个新的最小的数字 1219.示例 2 :输入: num = "10200", k = 1输出: "200"解释:
数字序列中的某一位数字 题目描述 数字以 0123456789101112131415... 的格式序列化到一个字符串中,求这个字符串的第 index 位. 题目链接: 数字序列中的某一位数字 代码 /** * 标题:数字序列中的某一位数字 * 题目描述 * 数字以 0123456789101112131415... 的格式序列化到一个字符串中,求这个字符串的第 index 位. */ public class Jz70 { public int getDigitAtIndex(int inde