题目:
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.
If the fractional part is repeating, enclose the repeating part in parent...
分类:
编程语言 时间:
2015-01-09 15:37:55
阅读次数:
295
Description
作为SDIBT的老师,最盼望的日子就是每月的10号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵 但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师发工资的时候都不用老师找零呢? 这里假设老师的工资都是正整数,单位元,人民币一共有100元、50...
分类:
其他好文 时间:
2015-01-09 15:36:19
阅读次数:
623
1.cshtml页面form提交2.控制器处理表单提交数据4种方式方法1:使用传统的Request请求取值[HttpPost]public ActionResult AddNews(){string a=Request["text1"];string b=Request["text2"];}方法2:...
分类:
Web程序 时间:
2015-01-09 15:28:46
阅读次数:
219
JSONObject allresult; allresult = new JSONObject(strResult); String result = allresult.getString("result"); String uInfo = allresult.getS...
分类:
移动开发 时间:
2015-01-09 14:16:00
阅读次数:
244
我们知道得到String对象有两种办法:String str1="hello";String str2=new String("hello"); 这两种创建String对象的方法有什么差异吗?当然有差异,差异就在于第一种方法在对象池中拿对象,第二种方法直接生成新的对象。在JDK5.0里面,Ja...
分类:
其他好文 时间:
2015-01-09 14:09:59
阅读次数:
119
string fileName="",filePath="";.....Response.Clear(); Response.Buffer = true;Response.AddHeader("Content-Disposition", "attachment;filename=" + fileNa...
分类:
其他好文 时间:
2015-01-09 13:58:56
阅读次数:
152
看了一些的kmp实现,依葫芦画瓢,很死板,前缀什么的完全没必要。
kmp算法的核心思想:先对搜索字串生成偏移对照表,匹配时从左向右依次比较(bm从右向左,号称比kmp更快),相等则文档和搜索字串的下标+1迭代,否则查表,定位最优的偏移位置(文档下标不变,搜索字串下标改变)。例外是,字符不匹配时,若搜索字串的下标为0,则文档的下标+1,继续迭代比较。...
分类:
编程语言 时间:
2015-01-09 12:44:14
阅读次数:
157
代码:
private void startAppByPkgName(String pkgName){
Intent intent =null;
intent = mContext.getPackageManager().getLaunchIntentForPackage(pkgName);
if(intent != null){
mContext....
分类:
移动开发 时间:
2015-01-09 12:40:13
阅读次数:
183
1 public static void excelOutput(final String templePath,final List dataList, final List staffCdList,final String path,final String fileNam) { 2 ...
分类:
其他好文 时间:
2015-01-09 12:33:36
阅读次数:
174
原文网址:http://www.cnblogs.com/lisuyun/p/3399232.htmlC/C++获取文件后缀名并且比较以下这段是VC中过去文件后缀名的方法1。CString GetSuffix(CString strFileName){ return strFileName.Righ....
分类:
编程语言 时间:
2015-01-09 12:29:30
阅读次数:
185