码迷,mamicode.com
首页 >  
搜索关键字:rikka with string    ( 95491个结果
Async and Await
Most people have already heard about the new “async” and “await” functionality coming in Visual Studio 11. This is Yet Another Introductory Post. Firs ...
分类:其他好文   时间:2021-02-15 12:36:36    阅读次数:0
增强for循环
public class demo3 { public static void main(String[] args) { // 增强for循环 <=> 数组或者集合对象的语法糖 int[] arr = {1,2,3,4,5,6}; // 最笨的方法 for(int i = 0; i < arr.l ...
分类:其他好文   时间:2021-02-15 12:35:46    阅读次数:0
KMP算法
KMP 算法(Knuth-Morris-Pratt 算法)是一个著名的字符串匹配算法。 对于字符串匹配,最简单的做法是暴力法双层循环依次对比。 int search(String pat, String txt) { int M = pat.length; int N = txt.length; f ...
分类:编程语言   时间:2021-02-15 12:27:03    阅读次数:0
CF1480 题解
CF1480A Yet Another String Game Problem 给出一个字符串,两人轮流操作,每次操作可以将一个字符改为另外一个字符,当不可以不改动,先手目标是让最终字符串字典序最小,后手目标相反,求最终字符串。 Sol 贪心地模拟即可。 #define in read() int ...
分类:其他好文   时间:2021-02-15 12:23:09    阅读次数:0
1069 The Black Hole of Numbers (20 分)
注意不满$4$位的话要补成$4$位。 string s; set<int> S; int main() { cin>>s; while(s.size()<4) s='0'+s; while(true) { sort(s.begin(),s.end(),greater<char>()); string ...
分类:其他好文   时间:2021-02-15 12:21:49    阅读次数:0
Delphi - 生成GUID
uses SysUtils; // 生成GUID function TForm2.GetGUID: string; var LTep: TGUID; sGUID: string; begin CreateGUID(LTep); sGUID := GuidToString(LTep); sGUID : ...
分类:Windows程序   时间:2021-02-15 12:21:06    阅读次数:0
[Dart语法]第五章:函数
函数 函数定义 //定义函数(方法) void printInfo() { String name = 'Tobu'; return print(name); } //函数调用 printInfo();//Tobu //私有函数定义 文件内可以随便调用 _privaFuction(){ ... } ...
分类:其他好文   时间:2021-02-15 12:03:40    阅读次数:0
Netty-Channel的读和写
public class NIOFileChannel01 { public static void main(String[] args) throws Exception { String str = "hello,帅锅"; //创建一个输出流->channel FileOutputStream ...
分类:Web程序   时间:2021-02-15 12:01:12    阅读次数:0
寒假学习日报(三十二)
今天主要是帮家里干活,做过年的准备,学习的知识不多。 package com.chapter01.hanshu object Demo03 { def main(args: Array[String]): Unit = { println(sum(10, 20, 3, 5, 7, 9)) } def ...
分类:其他好文   时间:2021-02-15 12:00:55    阅读次数:0
Properties
虽然不经常使用Hashtable,但是会经常使用Properties。 Properties是Hashtable的子类,是线程安全的。 Properties的key和value都是String类型的,又称为属性对象。 特点是key无序、不可重复。 其中有几个常用的方法: Object setProp ...
分类:其他好文   时间:2021-02-15 11:55:52    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!