原题网址:http://www.lintcode.com/zh-cn/problem/hex-conversion/ Given a decimal number n and an integer k, Convert decimal number n to base-k. 注意事项 1.0<n<2^31-1, 2<k<162.Each letter over 9 is indicated in uppercase 您在真实的面试中…
后台代码: List<WMSRptJHJY> wpjh WMSRptJHJYManage.GetModelList(""); ViewBag.WPJH Newtonsoft.Json.JsonConvert.SerializeObject(wpjh); 前台代码: var aa Html.Raw(ViewBag.WPJH); var PWJH eval("(" aa &…
记录下工作中常用的sql 删除重复数据 delete from student where id not in (select min(id) from student group by name);
-- 该语句在mysql下会报错,
-- 执行报错:1093 - You cant specify target table student for update in FROM clause
-- 原因是…
long long factorial(int n)
{long long m 1;for(int i1;i<n;i)m*i;return m;
}
long long C(int n,int m)
{return factorial(n)/(factorial(m)*factorial(n-m));//可能会溢出
} 正解: long long C(int n,int m)
{if(m<n-m) m n-m;long long ans 1;for(in…