原创 POJ水題1007DNA Sorting

DNA Sorting Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 91275 Accepted: 36661 Descrip

原创 全排列POJ1256Anagram

Anagram Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 18690 Accepted: 7602 Description

原创 KMP POJ 2752 Seek the Name, Seek the Fame

Seek the Name, Seek the Fame Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 15562 Accepte

原创 [dp]POJ 3176 Cow Bowling解題報告

題目: Cow Bowling Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 16077 Accepted: 10705 De

原创 中國剩餘定理POJ1006Biorhythms

Biorhythms Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 123784 Accepted: 39050 Descript

原创 POJ水題1002 487-3279

487-3279 Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 265450 Accepted: 47240 Descriptio

原创 以POJ1061青蛙的約會爲例談擴展歐幾里得算法

青蛙的約會 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 100498 Accepted: 19304 Description

原创 c++文件操作精簡詳解

要讀取文件必須包含頭文件,這裏包含了C++讀寫文件的方法。   可以使用fstream類,這個類可以對文件進行讀寫操作。   1、打開文件。   打開文件可以有兩種方式,第一種可以使用fstream類的構造函數。   fstrea

原创 hash&Rabin-Karp字符串查找POJ 1200 Crazy Search

Crazy Search Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 26045 Accepted: 7278 Descrip

原创 error: ISO C++ forbids declaration of `FILE' with no type

用g++編譯一個cpp的源文件時報錯如題。源文件中引用了另一個頭文件,那個頭文件中聲明瞭一個FILE的指針變量,但沒有包含stdio.h,源文件對應的頭文件也沒有顯式包含。 在引用的那個頭文件之前加上#include stdio

原创 KMP POJ 2406 Power Strings解題報告

Power Strings Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 40543 Accepted: 16865 Descr

原创 彙編指令全集(轉載)

[數據傳送指令] 使用指南:在當前頁面ctrl+F進行搜索 一、通用數據傳送指令 1、傳送指令 MOV (move) 指令的彙編格式:MOV DST,SRC 指令的基本功能:(DST)<-(SRC) 將原操作數(字節或字)傳

原创 KMP POJ 1961 Period 解題報告

Period Time Limit: 3000MS Memory Limit: 30000K Total Submissions: 15466 Accepted: 7417 Description

原创 Codeforces Round #332 (Div. 2) D. Spongebob and Squares詳解

D. Spongebob and Squares time limit per test 2 seconds memory limit per test 256 megabytes input standard inp

原创 Codeforces Round #332 (Div. 2) C. Day at the Beach詳解

C. Day at the Beach time limit per test 2 seconds memory limit per test 256 megabytes input standard input o