摘要:
#include #include #include #include #include #include #include using namespace std; char a[1005]; int main(){ scanf("%s",a); int len = strlen(a); long long sum = 0; for(int i = 0 ...
阅读全文
posted @ 2017-03-30 14:04
shiningrise
阅读(424)
推荐(1)
摘要:
#include #include #include #include using namespace std; bool mark[10000005]; int a,b,L,R,K; int A[1005]; bool check(int res){ int k=0; for(int i=a;iR)break; if(res>=L&&check(res))ma...
阅读全文
posted @ 2017-03-30 13:17
shiningrise
阅读(382)
推荐(1)
摘要:
#include #include using namespace std; int main(){ string s; getline(cin,s); for(int i =0 ; i = 'a' && s[i]= 'A' && s[i]= 'w' && s[i]= 'W' && s[i]<='Z')) { s[i] += 4 ...
阅读全文
posted @ 2017-03-28 14:33
shiningrise
阅读(208)
推荐(0)
摘要:
#include #include using namespace std; int main(){ string a,s ; char s1[1000]; cin>>a; int i= 0,j=0; bool f=false; while(1) { f=false; while(a[i] !=a[i+1]...
阅读全文
posted @ 2017-03-28 14:12
shiningrise
阅读(550)
推荐(0)
摘要:
原文链接:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/X-Frame-Options?redirectlocale=en-US&redirectslug=The_X-FRAME-OPTIONS_response_header X-Frame-O
阅读全文
posted @ 2017-03-27 10:46
shiningrise
阅读(8391)
推荐(1)
摘要:
#include #include using namespace std; int main(){ string a,b ; long m,n; m=1;n=1; cin>>a>>b; for(int i = 0 ; i < a.length(); i++) { m *= (a[i] - 64); m...
阅读全文
posted @ 2017-03-24 20:08
shiningrise
阅读(261)
推荐(0)
摘要:
https://codepay.fateqq.com/
阅读全文
posted @ 2017-03-24 13:33
shiningrise
阅读(201)
推荐(0)
摘要:
#include #include #include #include using namespace std; int main(){ int p ,q; int m,n; cin>>p>>q; m = p & q; int i = 0; int k = 0; while(m > 0) { i+...
阅读全文
posted @ 2017-03-23 22:17
shiningrise
阅读(270)
推荐(0)
摘要:
#include #include #include using namespace std; int main() { //十进制转换为若干进制>2,>num>>n; int s[100]; if(n>=2&&n=1;j--) { if(s[j]>=10) { cout<<s[j]+...
阅读全文
posted @ 2017-03-23 21:55
shiningrise
阅读(419)
推荐(0)
摘要:
var i,j,k,n,ans,p,len,chk,zh:longint; ch:char; s:string; a:array[1..100] of longint; begin readln(ch); chk:=ord(ch)-96; readln(n); for i:=1 to n do begin readln(s); ...
阅读全文
posted @ 2017-03-22 13:56
shiningrise
阅读(194)
推荐(0)
摘要:
http://m.blog.csdn.net/article/details?id=47984703
阅读全文
posted @ 2017-03-18 19:48
shiningrise
阅读(220)
推荐(0)
摘要:
使用示例: 在编辑器中输入缩写代码:ul>li*5 ,然后按下拓展键(默认为tab),即可得到代码片段: 下载和安装 Emmet为大部分流行的编辑器都提供了安装插件,下面是它们的下载链接: Sublime Text Eclipse/Aptana TextMate Coda Espresso Chocolat Komodo Edit Not...
阅读全文
posted @ 2017-03-17 19:58
shiningrise
阅读(272)
推荐(0)
摘要:
http://www.2cto.com/kf/201507/413329.html
阅读全文
posted @ 2017-03-16 08:51
shiningrise
阅读(127)
推荐(0)
摘要:
× 上传文件: ...
阅读全文
posted @ 2017-03-16 01:05
shiningrise
阅读(1109)
推荐(0)
posted @ 2017-03-13 18:31
shiningrise
阅读(163)
推荐(0)
摘要:
{求魔法力 每个魔法学徒的魔法力是不同的, 试编写一个程序,从键盘读入每个学徒的魔法力, 求全部魔法学徒的魔法力总和。当用户输入0时,程序结束。 } var a: string; i,sum : integer; begin read(i); while i0 do begin sum := sum + i; read(i...
阅读全文
posted @ 2017-03-13 15:26
shiningrise
阅读(257)
推荐(0)
摘要:
{电文保密 魔法世界电报局的电文保密的规律是将每个英文字母变成其后的第4个字母,如A变成E,a变成e。 最后的4个大写字母W、X、Y、Z分别变为A、B、C、D。非字母字符不变。输入一行字符,要求输出相应的密码。 } var a: string; i : integer; begin readln(a); for i:=1 to length(a) do ...
阅读全文
posted @ 2017-03-13 15:16
shiningrise
阅读(427)
推荐(0)
摘要:
Entity.Name = Regex.Replace(dt.Rows[i]["行政值日"].ToString().Trim().Replace(" ", "").Replace(" ", ""), @"\s", ""); Entity.Riqi = dt.Rows[i]["日期"].ToString().Trim().ToDateTime().T...
阅读全文
posted @ 2017-03-13 12:35
shiningrise
阅读(210)
推荐(0)
摘要:
http://kb.cnblogs.com/page/73528/ 1、 查询Student表中的所有记录的Sname、Ssex和Class列。 select sname,ssex,class from studentLinq: from s in Students select new { s.S
阅读全文
posted @ 2017-03-13 09:18
shiningrise
阅读(421)
推荐(0)
摘要:
diff --git a/CanDoo.Host/CanDoo.MvcHost/Areas/ShopA/Views/Home/Index.cshtml b/CanDoo.Host/CanDoo.MvcHost/Areas/ShopA/Views/Home/Index.cshtml index dbe87f1..aa4d1cc 100644 --- a/CanDoo.Host/CanDoo.Mvc...
阅读全文
posted @ 2017-03-13 08:36
shiningrise
阅读(227)
推荐(0)
摘要:
http://www.cnblogs.com/william-lin/p/3723752.html
阅读全文
posted @ 2017-03-12 23:28
shiningrise
阅读(304)
推荐(0)
摘要:
SELECT SUBSTRING(replace(replace(replace(CONVERT(varchar, ScanTime, 120 ),'-',''),' ',''),':',''),9,3) ctime, count(1) num FROM [eschool_1].[dbo].kg_Kaoqin group by SUBSTRING(replace(replace...
阅读全文
posted @ 2017-03-11 16:59
shiningrise
阅读(804)
推荐(0)
摘要:
CREATE TABLE snake (name VARCHAR(10 ),type INT,num INT, ctime DATETIME ) INSERT INTO snake VALUES(' 方便面', 1,10 ,'2015-08-10 16:20:05') INSERT INTO snake VALUES(' 香烟A ', 2,2 ,'2015-08-10 18:21:10') IN...
阅读全文
posted @ 2017-03-11 11:40
shiningrise
阅读(208)
推荐(0)
摘要:
实现发送短信验证码后60秒倒计时 https://www.oschina.net/code/snippet_2001568_48247
阅读全文
posted @ 2017-03-07 10:02
shiningrise
阅读(819)
推荐(0)
摘要:
C++中cin、cin.get()、cin.getline()、getline()、gets()等函数的用法 学C++的时候,这几个输入函数弄的有点迷糊;这里做个小结,为了自己复习,也希望对后来者能有所帮助,如果有差错的地方还请各位多多指教(本文所有程序均通过VC 6.0运行) 1、cin 2、ci
阅读全文
posted @ 2017-03-07 07:57
shiningrise
阅读(7054)
推荐(1)
摘要:
var sql = @"SELECT TOP 1000 [Id] ,[UserName] ,[Name] ,[HeadimgUrl] ,[PasswordHash] ,[Email] ,[Enable] ,[LoginTimes] ,[LastLoginTime] ...
阅读全文
posted @ 2017-03-05 14:50
shiningrise
阅读(232)
推荐(0)
摘要:
PetaPoco.Core https://www.nuget.org/packages/PetaPoco.Core/5.1.228
阅读全文
posted @ 2017-03-05 14:33
shiningrise
阅读(150)
推荐(0)
摘要:
http://www.cnblogs.com/scottckt/archive/2010/08/11/1797716.html Linq中连接主要有组连接、内连接、左外连接、交叉连接四种。各个用法如下。 注:本文内容主要来自《Linq实战》,本例中用到的对象请见文章底部。 1、 组连接 组连接是与分
阅读全文
posted @ 2017-03-05 13:37
shiningrise
阅读(258)
推荐(0)
摘要:
#include #include #include #include #include using namespace std; string num2str(int i) { stringstream ss; ss= (int)'a' && (int)s >m; while(m--) { cin>>s; ...
阅读全文
posted @ 2017-03-04 23:04
shiningrise
阅读(292)
推荐(0)
摘要:
http://hmbb.hustoj.com/problem.php?id=1005
阅读全文
posted @ 2017-03-04 22:23
shiningrise
阅读(685)
推荐(1)
摘要:
#include #include #include #include using namespace std; int main(){ string s1; string s2; long m,n; m=1; n=1; cin>>s1>>s2; for(int i = 0 ; i< s1.length(); i++) { ...
阅读全文
posted @ 2017-03-04 20:18
shiningrise
阅读(264)
推荐(0)
摘要:
http://oj.lcsyzx.cn/JudgeOnline/problem.php?id=1051
阅读全文
posted @ 2017-03-04 19:12
shiningrise
阅读(179)
推荐(0)
摘要:
#include #include #include #include using namespace std; int main(){ string s; cin>>s; //0-970-82162-4 int m = ((int)s[0] -48) * 1; m += ((int)s[2] - 48) * 2; m += ((...
阅读全文
posted @ 2017-03-04 18:00
shiningrise
阅读(530)
推荐(0)
摘要:
http://oj.lcsyzx.cn/JudgeOnline/problem.php?id=1049
阅读全文
posted @ 2017-03-04 17:11
shiningrise
阅读(648)
推荐(0)
摘要:
漂亮的验证码(.Net MVC) http://blog.csdn.net/hzgang811856054/article/details/38432839
阅读全文
posted @ 2017-03-02 21:07
shiningrise
阅读(167)
推荐(0)
摘要:
http://blog.csdn.net/rightfa/article/details/50462887?locationNum=10 原文链接:https://developer.mozilla.org/zh-CN/docs/Web/HTTP/X-Frame-Options?redirectlo
阅读全文
posted @ 2017-03-02 18:56
shiningrise
阅读(1417)
推荐(0)
摘要:
Linq中连接主要有组连接、内连接、左外连接、交叉连接四种。各个用法如下。 注:本文内容主要来自《Linq实战》,本例中用到的对象请见文章底部。 1、 组连接 组连接是与分组查询是一样的。即根据分组得到结果。 如下例,根据publisther分组得到结果。 使用组连接的查询语句如下: //使用组连接
阅读全文
posted @ 2017-03-01 16:12
shiningrise
阅读(200)
推荐(0)
摘要:
private void Form1_Load(object sender, EventArgs e) { Registry registry = new Registry(); registry.Schedule(() =>DoMyJob()).WithName("DoMyJob").ToRunEvery(1).D...
阅读全文
posted @ 2017-02-27 08:20
shiningrise
阅读(264)
推荐(0)
摘要:
NET定时任务执行管理器开源组件–FluentScheduler http://www.cnblogs.com/Irving/p/4053462.html
阅读全文
posted @ 2017-02-26 16:36
shiningrise
阅读(440)
推荐(0)
摘要:
https://blogs.msdn.microsoft.com/scott_hanselman/2014/12/21/asp-net/
阅读全文
posted @ 2017-02-26 15:54
shiningrise
阅读(305)
推荐(0)