/************************************************************************************************************************** * 基础常用 * ***************** ...
分类:
数据库 时间:
2018-04-28 21:08:56
阅读次数:
179
1.生成安全证书 Cas server默认的安全认证是基于https协议的,这就要求在应用程序和CAS Server端配置SSL协议。(当然也可以在cas server中配置让其可以用http访问) 要使用https协议,就需要使用安全证书,这里我们通过JDK自带的应用keytool来制作。这种自用 ...
分类:
其他好文 时间:
2018-04-26 18:20:13
阅读次数:
210
自用模板,树状数组 原理不讲,只说用法 树状数组建立成功之后,传入参数i,j 能轻松求解出来 数组a[i]+a[..]+...+a[j]的值 核心函数lowbit(),无论是建立树状数组还是更新,这个函数就最重要的函数,也是降低时间复杂度的精髓所在。 树状数组的建立,实际上是不断更新的过程,想让某个 ...
分类:
编程语言 时间:
2018-04-20 00:13:36
阅读次数:
192
int a = Convert.ToInt32(Console.ReadLine()); int b = Convert.ToInt32(Console.ReadLine()); if (b>a) { int x = a; a = b; b = x; } while (a%b!=0) { int n ...
分类:
其他好文 时间:
2018-04-07 16:20:28
阅读次数:
126
using System;class ChessBoard{ public char[,] SquareColor=new char [8,8]; public ChessBoard() { for(int i=0;i<SquareColor.GetLength (0);i++) { for(int ...
分类:
其他好文 时间:
2018-04-07 16:20:19
阅读次数:
146
using System;class fangcheng{ public static void Main() { //声名变量 double a; double b; double c; double d; double e; double f; double g; double h; doubl ...
分类:
其他好文 时间:
2018-04-07 16:18:28
阅读次数:
149
1.hold ? fish : palm; 鱼和熊掌不可兼得 2. if(this.Head.SetDirection(TheMoon.GetInstance().Position)) { this.Head.SetDirection(GROUND_DIRECTION); this.ThinkAbo ...
分类:
其他好文 时间:
2018-04-07 16:18:19
阅读次数:
196
using System;public class guess_number{ public static void Main() { int i_random=new Random ().Next (100); int i_guess=0; int i_count=0; Console.Write ...
分类:
其他好文 时间:
2018-04-07 16:16:59
阅读次数:
173
1、DateTime 数字型 System.DateTime currentTime=new System.DateTime(); 1.1 取当前年月日时分秒 currentTime=System.DateTime.Now; 1.2 取当前年 int 年=currentTime.Year; 1.3 ...
using System;class My{static void Main(){Pow r=new Pow (); System.Threading .Thread.Sleep (10000);}}class Pow{public Pow(){ Console.WriteLine("请输入你要求幂 ...
分类:
其他好文 时间:
2018-04-07 16:15:32
阅读次数:
172