2149专题

51nod【2149 字符串出现位置】

Java版 如果不用库方法,需要用KMP算法 import java.util.Scanner;public class Main {public static void main(String[] args) {Scanner in = new Scanner(System.in);String s1 = in.next();String s2 = in.next();System.out

[ACM] hdu 2149 Public Sale (巴什博奕)

Public Sale Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3396    Accepted Submission(s): 2095 Problem Description   虽然不想,但是现实总归是现实,

hdoj 2149 Public Sale(巴什博弈)

 http://acm.hdu.edu.cn/showproblem.php?pid=2149 Public Sale Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4394    Accepted Submission(