import android.app.AlertDialog;import
android.content.Context;import android.content.DialogInterface;import
android.text.TextUtils;import android.widg...
分类:
移动开发 时间:
2014-05-06 00:07:01
阅读次数:
307
值越小,越透明css:0.1-------1android:#00-----------#ff
分类:
移动开发 时间:
2014-05-06 00:06:04
阅读次数:
272
目录CocoaPods是什么?如何下载和安装CocoaPods?如何使用CocoaPods?场景1:利用CocoaPods,在项目中导入AFNetworking类库场景2:如何正确编译运行一个包含CocoPods类库的项目CocoaPods是什么?当你开发iOS应用时,会经常使用到很多第三方开源类库...
分类:
其他好文 时间:
2014-05-06 00:05:15
阅读次数:
403
题意:有一个有线电视网络叶子结点是用户,每个用户有一个愿意支付的金额。然后每条边都有话费。问公司在不亏本的情况下最多能满足多少用户。思路:dp[v][j]
= max(dp[v][j], dp[v][j-k]+dp[x][k]-edge(v, x))其实就是背包问题,但是一开始TLE了一次,这里要有...
分类:
其他好文 时间:
2014-05-06 00:04:24
阅读次数:
318
import java.io.ByteArrayOutputStream;import
java.io.FileInputStream;import java.io.FileNotFoundException;import
java.io.FileOutputStream;import java.i...
分类:
移动开发 时间:
2014-05-06 00:03:58
阅读次数:
376
题目输入正好是long long的最大, 但是答案超long long所以用unsigned,
不能用cin cout否则一定超时;不能用abs(), abs 只用于整数。unsigned int 0~4294967295int
2147483648~2147483647unsigned long ...
分类:
其他好文 时间:
2014-05-06 00:02:34
阅读次数:
391
命名的返回值优化:
针对返回一个局部的变量的优化,可以直接用返回的结果对象直接替代局部变量,从而减少了一个复制拷贝,从而提高效率。比如 一个函数如下:X bar(){ X xx;
// .. 处理xx return xx;}而在编译器看来则是如下的代码: // 此处的_resu...
分类:
其他好文 时间:
2014-05-06 00:01:10
阅读次数:
442
一、简单介绍using System.Xml;//初始化一个xml实例XmlDocument
xml=new
XmlDocument();//导入指定xml文件xml.Load(path);xml.Load(HttpContext.Current.Server.MapPath("~/file/boo...
分类:
其他好文 时间:
2014-05-05 23:59:47
阅读次数:
347
GridView 一种是直接用simpleAdapt,另一种是自己写一个myAdapt
继承baseAdapt.这里是第二个例子。http://fonter.iteye.com/blog/781403package
com.grid.test;import java.util.ArrayList;i...
分类:
其他好文 时间:
2014-05-05 23:56:59
阅读次数:
357
Given a binary tree containing digits from 0-9
only, each root-to-leaf path could represent a number.An example is the
root-to-leaf path 1->2->3 which...
分类:
其他好文 时间:
2014-05-05 23:55:36
阅读次数:
407