码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
Weekly Contest 113
949. Largest Time for Given Digits (string::compare) Given an array of 4 digits, return the largest 24 hour time that can be made. The smallest 24 hou ...
分类:其他好文   时间:2018-12-02 13:38:24    阅读次数:120
1060 Are They Equal (25 分)
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123×10?5?? wi ...
分类:其他好文   时间:2018-12-01 21:58:22    阅读次数:179
402. Remove K Digits - Medium
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 l ...
分类:其他好文   时间:2018-11-29 15:01:13    阅读次数:143
Digital Deletions HDU - 1404
Digital deletions is a two-player game. The rule of the game is as following. Begin by writing down a string of digits (numbers) that's as long or as ...
分类:其他好文   时间:2018-11-27 16:48:53    阅读次数:157
[leetcode]282. Expression Add Operators 表达式添加运算符
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or * between the d ...
分类:其他好文   时间:2018-11-25 13:17:15    阅读次数:346
Find The Multiple
Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You m ...
分类:其他好文   时间:2018-11-25 11:49:28    阅读次数:109
Java判断一个数是不是快乐数
快乐数的定义: 快乐数(happy number)有以下的特性: 在给定的进位制下,该数字所有数位(digits)的平方和,得到的新数再次求所有数位的平方和,如此重复进行,最终结果必为1。 以十进制为例: 2 8 → 22+82=68 → 62+82=100 → 12+02+02=1 3 2 → 3 ...
分类:编程语言   时间:2018-11-24 17:08:19    阅读次数:252
LightOJ - 1205:Palindromic Numbers (数位DP&回文串)
A palindromic number or numeral palindrome is a 'symmetrical' number like 16461 that remains the same when its digits are reversed. In this problem yo ...
分类:其他好文   时间:2018-11-18 23:05:59    阅读次数:265
8504. Sum of Digits
Sum of Digits Having watched the last Harry Potter film, little Gerald also decided to practice magic. He found in his father's magical book a spell t ...
分类:其他好文   时间:2018-11-17 14:40:23    阅读次数:253
Python----文件和异常
1.从文件中读取数据#从文件中读取数据withopen("pi_digits.txt")asfile_abnormal:#open()函数:接受的参数是要打开文件的名称,在当前目录查找指定文件contents=file_abnormal.read()#方法read():读取文件的全部内容,到达文件末尾时返回一个空字符print(contents)print(contents.r
分类:编程语言   时间:2018-11-14 19:00:51    阅读次数:227
2164条   上一页 1 ... 33 34 35 36 37 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!