原创 Codeforces Round #359 (Div. 2) A

A. Free Ice Cream time limit per test 2 seconds memory limit per test 256 megabytes input standard input

原创 Codeforces Round #367 (Div. 2) B

B. Interesting drink time limit per test 2 seconds memory limit per test 256 megabytes input standard input

原创 HDU 5867 Water problem 題如其名

Water problem Time Limit:1000MS     Memory Limit:65536KB     64bit IO Format:%I64d & %I64u Submit Status Practice 

原创 Codeforces Round #367 (Div. 2) A

A. Beru-taxi time limit per test 1 second memory limit per test 256 megabytes input standard input output

原创 hiho 1014

輸入 輸入的第一行爲一個正整數n,表示詞典的大小,其後n行,每一行一個單詞(不保證是英文單詞,也有可能是火星文單詞哦),單詞由不超過10個的小寫英文字母組成,可能存在相同的單詞,此時應將其視作不同的單詞。接下來的一行爲一個正整

原创 Codeforces Round #359 (Div. 2) B

B. Little Robber Girl's Zoo time limit per test 2 seconds memory limit per test 256 megabytes input standar

原创 HDU 1325 Is It A Tree?

Is It A Tree? Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s):

原创 HDU 1856 More is better

More is better Time Limit: 5000/1000 MS (Java/Others)    Memory Limit: 327680/102400 K (Java/Others) Total Submission(

原创 HDU 1009 FatMouse' Trade

FatMouse' Trade Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s

原创 HDU 1872 穩定排序

穩定排序 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5378    A

原创 POJ 3984 迷宮問題

迷宮問題 Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 16343   Accepted: 9762 Description 定義一個二維數組: int

原创 hihoCoder #1135 : Magic Box

描述 The circus clown Sunny has a magic box. When the circus is performing, Sunny puts some balls into the box one

原创 hiho 1015 KMP

#1015 : KMP算法 時間限制:1000ms 單點時限:1000ms 內存限制:256MB 描述 小Hi和小Ho是一對好朋友,出生在信息化社會的他們對編程產生了莫大的興趣,他們約定好互相幫助,在編程的學習道路上一同前進。

原创 hiho 1032 最長迴文子串

   樣例輸入 3 abababa aaaabaa acacdas    樣例輸出 7 5 3    純模板 #include <stdio.h> #include <string.h> #define min(x,y) ( x

原创 關係代數

什麼是關係代數 1、概念 關係代數是一種抽象的查詢語言,用對關係的運算來表達查詢。 2、分類 關係代數可以分爲傳統的集合運算和專門的關係的關係運算兩類。 集合運算符 含義 ∪ 並 ∩ 交 − 差 × 笛卡兒積