原题地址先将数字转成字符串,然后排序,让能够组成更大数字的字符串放在前面,最后拼接成完整的字符串即可。有种很巧妙的方法判断两个字符串的大小关系,假设两个字符串是A,B,则比较AB和BA,若AB比BA大,说明A应该放在前面,即A &num) { 2 string res; 3 4 vecto...
分类:
其他好文 时间:
2015-01-26 19:00:19
阅读次数:
129
本文转载至http://stackoverflow.com/questions/26460706/uialertcontroller-custom-font-size-colorup vote2down votefavorite3I am using new UIAlertController fo...
分类:
其他好文 时间:
2015-01-26 19:00:50
阅读次数:
1830
ldr/str字和无符号字节加载/存储,其中ldr的指令格式为1.LDR Rd,[Rn]2.LDR Rd,[Rn,Flexoffset]3.LDR Rd,[Rn],Flexoffset4.LDR Rd,label注意:ldr只能在当前PC的4KB范围内跳转;B只能在当前PC的32M范围内跳转;la....
分类:
其他好文 时间:
2015-01-26 18:59:40
阅读次数:
223
loading的两种常用方式1、 UIActivityIndicatorView*loadingView = [[UIActivityIndicatorViewalloc]initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite...
分类:
其他好文 时间:
2015-01-26 18:58:57
阅读次数:
211
我们在程序中所使用的任何值都是有类型的。在JavaScript中,主要包含以下几大基本数据类型。数字:包括浮点数与整数字符串:由任意数量字符组成的序列布尔值:true或falseundefined:当我们试图访问一个不存在的变量时,就会得到一个特殊值,undefined。除此之外,使用一个未初始化的...
分类:
其他好文 时间:
2015-01-26 18:57:47
阅读次数:
150
该博文记录我在开发过程中遇到的细小问题,以备后用。(1)从txt中解析DateTime类型,格式为20140506或者20140506 12:30:31 1 System.IFormatProvider format = new System.Globalization.CultureInfo("....
分类:
其他好文 时间:
2015-01-26 18:56:32
阅读次数:
177
如何解决谷歌Chrome浏览器空白页的问题谷歌Chrome浏览器突然不打开任何网页,无论是任何站点(如http://www.baidu.com), 还是Chrome浏览器的设置页面(chrome://settings/), 扩展页面 ( chrome://extensions/ ) , 所有其他浏览...
分类:
其他好文 时间:
2015-01-26 18:56:44
阅读次数:
1030
1,定义接口文件 1 /****************************************************************************************************** 2 * Copyright (C) 2014, All right.....
分类:
其他好文 时间:
2015-01-26 18:58:08
阅读次数:
170
// /// 取得客户端真实IP。如果有代理则取第一个非内网地址 /// by flower.b /// public static string IPAddress { get ...
分类:
其他好文 时间:
2015-01-26 18:54:18
阅读次数:
124
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2015-01-26 18:56:42
阅读次数:
227
ISO/IEC 9899:2011 条款5——5.2.2 字符显示语义
分类:
其他好文 时间:
2015-01-26 18:56:14
阅读次数:
196
第一道:poj 1905Expanding Rods题意:两道墙(距离L)之间架一根棒子,棒子受热会变长,弯曲,长度变化满足公式(s=(1+n*C)*L),求的是弯曲的高度h。首先来看这个图:如图,蓝色为杆弯曲前,长度为L红色为杆弯曲后,长度为sh是所求。又从图中得到三条关系式;(1) 角度→弧度公...
分类:
其他好文 时间:
2015-01-26 18:54:43
阅读次数:
205
解题思路:基础的最小生成树反思:不明白为什么i从1开始取,就一直WA,难道是因为村庄的编号是从0开始的吗Ice_cream’s world IIITime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Othe...
分类:
其他好文 时间:
2015-01-26 18:55:17
阅读次数:
156
background-origin和background-clip是CSS3内新增加的属性,其实一个是对背景图片的放置,另一个是对背景图片的剪裁。background-origin和background-clip的选择都一样:content- box,padding-box,border-box(要...
分类:
其他好文 时间:
2015-01-26 18:54:17
阅读次数:
370
...Applied just once, as opposed to every button element seemed to fix all buttons on the page. Alternatively you could use this small JS library ...
分类:
其他好文 时间:
2015-01-26 18:54:28
阅读次数:
221