原创 CodeForces 556A

Description Andrewid the Android is a galaxy-famous detective. In his free time he likes to think about strings cont

原创 hdu 5224 Tom and Paper

Description There is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this

原创 UVALive 6661

題目鏈接:http://vjudge.net/problem/viewProblem.action?id=49406 思路: 題意:根據給出的n,k,s求出n個數每個數都不大於k,和爲s的序列(n個數每個都不同)的總情況數。 思路: 利

原创 hdu 1969

Pie Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 109 Acc

原创 ViewPager 詳解(一)---基本入門

轉載自:http://blog.csdn.net/harvic880925/article/details/38453725   前言:這兩天研究研究ViewPager滾動功能,現在很多的app都有用到這個功能,我們的大蝦米也有這個模

原创 Android中的消息通知Toast和Notification

1、Toast   Toast譯爲土司,類似切片面包,用於彈出比較快速的及時提示信息。當Toast被顯示時, 雖然它懸浮應用程序最上方,但是並未獲得焦點。它的設計就是爲了提示有用的信息,而不打擾用戶其他操作。 最使用簡單:

原创 Codeforces Round #313 (Div. 2) C. Geralds Hexagon(補大三角.cpp

 Description Gerald got a very curious hexagon for his birthday. The boy found out that all the angles of the hexag

原创 短信驗證碼

1.www.mob.com 2聚合數據

原创 Codeforces Round #315 (Div. 2)

Description Little Lesha loves listening to music via his smartphone. But the smartphone doesn't have much memory, so

原创 android studio 中去除應用標題欄

androdi studio中去除應用標題欄      ①mainifests中設置:android:theme="@style/AppTheme"(即默認設置).        ② values->styles.xml中設置:st

原创 UVA 10453

Description By definition palindrome is a string which is not changed when reversed. "MADAM" is a nice example of pa

原创 使用ProgressDialog創建進度對話框

ProgressDialog代表了進度對話框,程序只要創建ProgressDialog實例,並將它顯示出來就是一個對話框。有兩種方法實現。 ①如果只是創建簡單的進度對話框,那麼調用ProgressDialog提供的靜態show()方法顯示

原创 Random Teams(Codeforces Round 273)

Description n participants of the competition were split into m teams in some manner so that each team has at least o

原创 hdu 1222

 Description There is a hill with n holes around. The holes are signed from 0 to n-1. A rabbit must hide in one o

原创 TexView中的ellipsize屬性

TextView中有個ellipsize屬性,作用是當文字過長時,該控件該如何顯示,解釋如下:1.android:ellipsize=”start”—–省略號顯示在開頭2.android:ellipsize=”end”——省略號顯示在結尾