原创 hdu 5895

#include <iostream> #include <cstdio> #include <string.h> #include <algorithm> #include <map> #include <queue> #inc

原创 hdu1077 catching fish

Problem Description Ignatius likes catching fish very much. He has a fishnet whose shape is a circle of radius one

原创 hdu 5828

#include <cstdio> #include <cstring> #include <algorithm> #include <cmath> #include <cstdlib> #include <cctype> #in

原创 hdu 5441

#include <iostream> #include <string.h> #include <set> #include <cstdio> #include <algorithm> #define ll long long #def

原创 百毒之星資格賽A題

很巧妙的建圖題 度度熊保護村莊 Problem Description 嘩啦啦村襲擊了喵哈哈村!度度熊爲了拯救喵哈哈村,帶着自己的夥伴去救援喵哈哈村去了!度度熊與夥伴們很快的就過來佔據了喵哈哈村的各個軍事要地,牢牢的守住了喵

原创 Android實現webview

webview是一個很簡單的功能,代碼沒有什麼邏輯上的難度,只是需要注意權限上的問題。其實在安卓編程的過程當中,權限問題可以算是出現的比較多的BUG。 1.MainAct package com.lxq.webview01; impor

原创 Sa總結

這幾天寫了很多後綴數組 先上可用的模板 #include<cstdio> #include<cstring> #include<algorithm> #include<iostream> #define maxn 1000003 #de

原创 hdu 5492

#include <iostream> #include <cstring> using namespace std; double f[35][35],a[35][35],b[35][35],ans,Max,Min,Exp,ave; i

原创 hdu 5755

#include <iostream> #include <cstdio> #include <algorithm> #include <vector> #include <cstring> #include <cstdlib> #inc

原创 Android查看api源碼

當我們閱讀Android API開發文檔時候,上面的每個類,以及類的各個方法都是已經寫好的方法和控件,可是我們只是在搬來使用,不知道它的原理,它是如何被實現的。android系統是開源的,所以谷歌官方在每發佈一個版本的時候都會放出它對應的

原创 hdu 5572

#include <iostream> #include <cstdio> #include <string.h> #include <algorithm> #include <map> #include <queue> #include

原创 ac自動機與狀態轉移

AC自動機是一個確定性有限狀態自動機 形式定義 · 定義:有限狀態自動機(FA—finite automaton)是一個五元組: – M=(Q, Σ, δ, q0, F) · 其中, – Q——狀態的非空有窮集合。∀q∈Q,q稱

原创 hdu 5794

#include <algorithm> #include <cstdio> #include <vector> #include <iostream> using namespace std; const int mod = 110

原创 Calender類

Calendar是Android開發中需要獲取時間時必不可少的一個工具類,通過這個類可以獲得的時間信息還是很豐富的,下面做一個總結,以後使用的時候就不用總是去翻書或者查資料了。 在獲取時間之前要先獲得Calendar這個類的實例: pr

原创 hdu 5738

#include <cmath> #include <cstdio> #include <cstring> #include <algorithm> #include <math.h> #include <iostream> #defin