- 博客(329)
- 资源 (8)
- 收藏
- 关注
原创 数据结构排序算法比较
快速排序javapackage codeB;public class 快速排序 { //METHOD SIGNATURE BEGINS, THIS METHOD IS REQUIRED public static void quickSort(int[] arr,int low,int high) { // INSERT YOUR CODE HERE if(lo...
2019-09-23 09:36:08
340
原创 计算机OSI七层和封装过程
最后说一下经常分不清的网桥、网关、和网卡的区别:1、网桥,是把两个不同物理层,不同MAC子层,不同速率的局域网连接在一起。比如说10MB/S与100MB/S的局域网。因为它有储存转化功能。2、网卡是电脑的一个接收信息 转换信息 暂储信息的一个硬件。它是把接受到信息递交给上层,如(CUP)的一个接口。3、网关(Gateway)又称网间连接...
2019-06-29 10:28:15
2054
原创 安卓连接云数据库
连接云数据库我想了一下,自己目前就掌握了两种方法,一种是线程,一种是异步。那么哪种方法比较好呢。其实是异步我个人觉得更好,其实异步的连接也是一种线程的方式,不过不够明显。我写了一个登陆的demo. 先说一下单纯的线程方式: package com.example.myphone;import java.io.IOException;import java.io
2015-03-02 10:18:46
3848
1
原创 SharedPreferences
除了SQLite数据库外,SharedPreferences也是一种轻型的数据存储方式,它的本质是基于XML文件存储key-value键值对数据,通常用来存储一些简单的配置信息。其存储位置在/data/data//shared_prefs目录下。SharedPreferences对象本身只能获取数据而不支持存储和修改,存储修改是通过Editor对象实现。实现SharedPreferences存储的
2015-03-01 22:49:43
595
原创 自定义view
view的自定义使用不仅仅包括在xml的页面进行赋值和布局,也可以在java中直接用语言进行布局,从而在xml中调用代码形成的模板。MainActivitypackage com.muke.mukemytopbar;import com.muke.mukemytopbar.Topbar.tobarClickListener;import android.os.Bundle;imp
2015-02-04 10:25:01
579
原创 安卓的拼图游戏(二)
表示已经做完了整个程序,感觉收获还是很多的。。对着视频敲代码也发生了很多的错 误,但是对于时间的控制和RelativeLayout的自控件的使用也有了了解,觉得还不错。MainActivitypackage com.innoc.game.pintu;import android.app.Activity;import android.app.AlertDialog;import
2015-02-03 12:15:19
1269
2
原创 安卓拼图游戏(一)
完成了拼图的切换和动画效果,熟悉了View的用法,总体来说还是感觉很张见识的。。主类package com.innoc.game.pintu;import com.example.first.R;import android.os.Bundle;import android.app.Activity;import android.view.Menu;public c
2015-02-02 16:57:00
1150
3
原创 A. Design Tutorial: Learn from Math
A. Design Tutorial: Learn from Mathtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputOne way to create a task
2014-10-10 14:50:37
1203
2
原创 操作系统常考面试题目
1、什么是进程(Process)和线程(Thread)?有何区别? 进程是具有一定独立功能的程序关于某个数据集合上的一次运行活动,进程是系统进行资源分配和调度的一个独立单位。线程是进程的一个实体,是CPU调度和分派的基本单位,它是比进程更小的能独立运行的基本单位。线程自己基本上不拥有系统资源,只拥有一点在运行中必不可少的资源(如程序计数器,一组寄存器和栈),但是它可与同属一个进程的其他的
2014-06-16 19:38:43
964
原创 常考链表的面试题目
题一、 给定单链表,检测是否有环。 使用两个指针p1,p2从链表头开始遍历,p1每次前进一步,p2每次前进两步。如果p2到达链表尾部,说明无环,否则p1、p2必然会在某个时刻相遇(p1==p2),从而检测到链表中有环。http://ostermiller.org/find_loop_singly_linked_list.html这篇文章讲了很多好的坏得相关算法。题
2014-06-14 20:14:01
876
原创 B. Inna and Nine
B. Inna and Ninetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputInna loves digit 9 very much. That's why sh
2014-04-29 16:59:09
958
原创 Codeforces Round #220 (Div. 2) A. Inna and Pink Pony 这个题目不简单的
A. Inna and Pink Ponytime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputDima and Inna are doing so great! At t
2014-04-29 15:42:19
1413
原创 Codeforces Beta Round #48 A. Cheaterius's Problem
A. Cheaterius's Problemtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputCheaterius is a famous in all the B
2014-04-27 11:22:05
760
原创 hdu 4496 并查集的变形
D-CityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)Total Submission(s): 1055 Accepted Submission(s): 404Problem DescriptionLuxer is a really ba
2014-04-26 20:40:45
920
原创 Pascal's Travels hdu 1208 子状态继承的dp问题,值得一做
Pascal's TravelsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1572 Accepted Submission(s): 689Problem DescriptionAn n x n g
2014-04-23 17:14:01
887
原创 Codeforces Round #216 (Div. 2) B. Valera and Contest
B. Valera and Contesttime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera loves to participate in competi
2014-04-23 15:50:27
906
原创 Codeforces Round #216 (Div. 2) A. Valera and Plates
A. Valera and Platestime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputValera is a lazy student. He has m clea
2014-04-22 20:10:14
1074
原创 Play the Dice hdu 4586 数学期望的问题
Play the DiceTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 710 Accepted Submission(s): 253Special JudgeProblem DescriptionT
2014-04-22 19:40:23
1123
原创 2013年山东省赛题目 Alice and Bob
Alice and BobTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述 Alice and Bob like playing games very much.Today, they introduce a new game. There is a polynomial like thi
2014-04-19 10:05:44
1179
原创 Friends zoj 3710
FriendsTime Limit:2 Seconds Memory Limit: 65536 KB Alice lives in the country where people like to make friends. The friendship is bidirectional and if any two person have no less tha
2014-04-17 15:33:49
1057
1
原创 Break Standard Weight zoj 3706
Break Standard WeightTime Limit: 2 Seconds Memory Limit: 65536 KB The balance was the first mass measuring instrument invented. In its traditional form, it consists of a pivoted horizon
2014-04-17 10:52:51
948
原创 A. Password Check
A. Password Checktime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have probably registered on Internet s
2014-04-16 16:03:28
873
原创 codeforces 416 B. Art Union
B. Art Uniontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA well-known art union called "Kalevich is Aliv
2014-04-15 16:43:34
1268
原创 第十一届浙江省赛题目
Pokemon MasterTime Limit:2 Seconds Memory Limit: 65536 KB Calem and Serena are pokemon masters. One day they decided to have a pokemon battle practice before Pokemon World Champions
2014-04-15 15:23:16
1423
原创 Codeforces Round #241 (Div. 2) A. Guess a number!
A. Guess a number!time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputA TV show called "Guess a number!" is gat
2014-04-13 16:51:23
963
原创 Rescue The Princess
Rescue The PrincessTime Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^题目描述 Several days ago, a beast caught a beautiful princess and the princess was put in prison. To rescue the pr
2014-04-10 17:16:54
2605
原创 hdu 1107 一道很霸气的模拟题目
武林Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2462 Accepted Submission(s): 657Problem Description在一个有12行12列的方形的武林世界里,少林、
2014-04-09 20:25:28
1388
原创 Codeforence 23C Oranges and Apples
C. Oranges and Applestime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputIn 2N - 1 boxes there are apples and
2014-04-09 15:42:34
1058
原创 Codeforence 23 B. Party 比较有趣的思维问题
B. Partytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputn people came to a party. Then those, who had no f
2014-04-09 10:40:20
1171
原创 hdu 2216 Game III
Game IIITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1285 Accepted Submission(s): 362Problem DescriptionZjt and Sara will
2014-04-09 09:55:09
886
原创 hdu 2212 数学问题
DFSTime Limit: 5000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4702 Accepted Submission(s): 2884Problem DescriptionA DFS(digital factoria
2014-04-08 20:40:58
958
原创 codeforences 29A
A - You're Given a String... pTime Limit: 2000MS Memory Limit: 262144K 64bit IO Format: %I64d & %I64u[Submit] [Go Back] [Status]DescriptionYou
2014-04-08 20:10:02
977
原创 fzu Problem 2152 文件系统
Problem 2152 文件系统Accept: 37 Submit: 73Time Limit: 1000 mSec Memory Limit : 32768 KB Problem Description每个Linux文件具有四种访问权限:可读(r)、可写(w)、可执行(x)和无权限(-)。利用ls -l命令可以看到某个文件或目录的
2014-04-03 16:06:56
631
原创 fzu Problem 2154 YesOrNo
Problem 2154 YesOrNoAccept: 61 Submit: 129Time Limit: 1000 mSec Memory Limit : 32768 KB Problem DescriptionA国认为如果字符串a可以通过操作X变成字符串b,就认为是一样的字符串。操作X:将字符串分为两部分,然后调换位置,操作次数不
2014-04-03 11:00:17
948
原创 hdu 2211
杀人游戏Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1506 Accepted Submission(s): 315Problem Description不知道你是否玩过杀人游戏,这里的杀人游戏可没
2014-04-02 01:00:39
1287
Vue-Devtools--master.zip
2019-05-11
barcode4j-light-2.0
2018-12-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人