- 博客(41)
- 资源 (1)
- 收藏
- 关注
原创 解决Android Studio的adb not response。。。错误
因为adb所要用到的端口被其他程序占用,找出其关闭即可。打开任务管理器,关闭pid为9496的程序即可。
2015-10-14 21:02:27 467
转载 makefile
最近在学习Linux下的C编程,买了一本叫《Linux环境下的C编程指南》读到makefile就越看越迷糊,可能是我的理解能不行。 于是google到了以下这篇文章。通俗易懂。然后把它贴出来,方便学习。 后记,看完发现这篇文章和《Linux环境下的C编程指南》的makefile一章所讲述的惊人的相似,只是这篇文章从一个实例切入,在有
2015-07-04 13:51:25 423
原创 HDOJ 2028
Lowest Common Multiple PlusTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 38101 Accepted Submission(s): 15679Problem Description
2015-02-14 11:40:48 363
原创 HDOJ 2027
统计元音Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 43782 Accepted Submission(s): 17887Problem Description统计每个元音字母在字符串中出现的次数。
2015-02-14 10:52:01 394
原创 HDOJ 2026
#include#includeint main(){ char a[202]; int i,j; while (gets(a)){ a[0] -= 32; for (i=1;i<strlen(a)-1;i++) if (a[i]==' ') a[i+1] -= 32;
2015-02-12 23:39:26 397
原创 HDOJ 2025
查找最大元素Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 33170 Accepted Submission(s): 18341Problem Description对于输入的每个字符串,查找其中的最
2015-02-12 20:56:07 339
原创 HDOJ 2024
C语言合法标识符Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42805 Accepted Submission(s): 17167Problem Description输入一个字符串,判断其是否是C的合法标
2015-02-12 11:52:58 285
原创 HDOJ 2023
求平均成绩Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 72361 Accepted Submission(s): 17416Problem Description假设一个班有n(n Inpu
2015-02-12 10:57:08 552
原创 Ubuntu使用记录
1.The Solution to System Settings' missing:reinstall unity-control-center2.About the input method. To restart the ibus: killall ibus-daemon
2015-02-12 09:42:15 401
原创 HDOJ 2020 && 2021 && 2022
绝对值排序Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 48819 Accepted Submission(s): 23491Problem Description输入n(n In
2015-02-01 20:17:14 740 1
原创 Vi的基本使用方法
1. 按i,进入Insert Mode,进行编辑2. 按esc,退出Insert Mode,进入命令行模式3. 按:后,(1):w filename == 将以上文本保存到filename文件下(2):wq Save&Exit(3):q! Exit Without Save
2015-02-01 13:34:22 317
原创 HDOJ 2019
数列有序!Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 54474 Accepted Submission(s): 23579Problem Description有n(n Inp
2015-01-31 23:21:16 286
原创 HDOJ 2018 母牛的故事
开始的代码是错误的,后来的代码是正确的,但是我不知道为啥。感觉这样对我没啥帮助,想彻底搞清楚为什么。希望会对我自己有点帮助。WA代码:#include#includeusing namespace std;int main(){ int n; while(cin >> n && n!=0){ int a[55]={0};a[1]=1;a[2]=1;
2015-01-31 20:11:25 399
转载 win8换成win7可参考
如果想把原装的win8换成win7的话,可以参考参考一下链接的文章。可以解决很多遇到的问题。http://jingyan.baidu.com/article/f7ff0bfc7571452e26bb1330.html
2015-01-28 20:01:21 381
转载 Usage of Nano
Installing NanoNano is included with many Linux distributions by default, but some users may need to install it through their distribution'spackage management tool:Debian/Ubuntu users can issue
2015-01-21 20:44:58 357
转载 Buffer Overflow
From Wikipedia, the free encyclopediaIn computer security and programming, a buffer overflow, or buffer overrun, is ananomaly where a program, while writing data to a buffer, overrun
2015-01-21 11:29:54 1850
转载 Sublime Text 2的注册码
BEGIN LICENSEAndrew WeberSingle User LicenseEA7E-855605813A03DD 5E4AD9E6 6C0EEB94 BC99798F942194A6 02396E98 E62C9979 4BB979FE91424C9D A45400BF F6747D88 2FB8807890F5CC94 1CD
2015-01-14 10:52:58 428
转载 int main(int argc, char * argv[])是啥意思?
argc是命令行总的参数个数 argv[]是argc个参数,其中第0个参数是程序的全名,以后的参数 命令行后面跟的用户输入的参数,比如: int main(int argc, char* argv[]) { int i; for (i = 0; i i++)
2015-01-03 23:37:05 648
转载 ACMer‘s step
下面给出的题目共计560道,去掉重复的也有近500题,作为ACMer Training Step1,用1年到1年半年时间完成。打牢基础,厚积薄发。 一、UVaOJ http://uva.onlinejudge.org 西班牙Valladolid大学的程序在线评测系统,是历史最悠久、最著名的OJ。 二、《算法竞赛入门经典》 刘汝佳 (UVaOJ 351道题)
2014-10-24 15:51:55 1576
原创 lenovo thinkpad E431预装windows8装winodws7
首先,进PE,重新分区,把GPT分区表硬盘转换为MBR分区表硬盘:参考y
2014-10-21 00:01:33 548
原创 在Ubuntu下进行JAVA开发之前的配置
参考资料:http://jingyan.baidu.com/article/86fae346b696633c49121a30.html
2014-10-19 09:14:53 398
原创 How to use Ruijie to contact to the Internet on Ubuntu
I install the Ruijie on Ubuntu , mentohust, finish installing the Ubuntu 14.04
2014-10-18 15:36:46 676
原创 Problem 2014
青年歌手大奖赛_评委会打分Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47394 Accepted Submission(s): 23750Problem Description青年歌手大奖赛中,评委会给参
2014-10-13 16:12:45 320
原创 Problem 2013
蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35303 Accepted Submission(s): 26610Problem Description喜欢西游记的同学肯定都知道悟空偷吃蟠桃的故事,你
2014-10-13 15:23:34 326
转载 Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?出现这个问题可能是有另外一个程序正
2014-10-13 13:15:22 723
转载 apt-get 时出现的问题
今天在执行一个deb包时,出现了一个错误:Reading package lists… DoneBuilding dependency tree… Donepppoeconf is already the newest version.You might want to run `apt-get -f install’ to correct these:The followin
2014-10-13 13:15:06 622
转载 HDOJ题目分类
基础题:1000、1001、1004、1005、1008、1012、1013、1014、1017、1019、1021、1028、1029、1032、1037、1040、1048、1056、1058、1061、1070、1076、1089、1090、1091、1092、1093、1094、1095、1096、1097、1098、1106、1108、1157、1163、1164、1170、1194
2014-10-11 11:44:15 504
原创 Problem 2011 & 2012
#include int main(){ int n,m,i; scanf("%d",&n); while (n--){ double sum = 0; scanf("%d",&m); for (i=1;i<=m;i++){ if (i % 2 == 0) sum +
2014-10-10 09:18:15 311
原创 Problem 2010
水仙花数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 99186 Accepted Submission(s): 29444Problem Description春天是鲜花的季节,水仙花就是其中最迷人的代表,
2014-10-10 08:36:59 342
原创 Problem 2009
求数列的和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 44499 Accepted Submission(s): 27470Problem Description数列的定义如下:数列的第一项为n,以后各
2014-10-09 23:17:57 304
原创 Problem 2008
数值统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 55654 Accepted Submission(s): 28395Problem Description统计给定的n个数中,负数、零和正数的个数。
2014-10-09 21:47:28 392
原创 Problem 2006 & 2007
平方和与立方和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 92929 Accepted Submission(s): 29783Problem Description给定一段连续的整数,求出他们中所有偶数的
2014-10-09 21:04:33 428
原创 Problem 2005
第几天?Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 75527 Accepted Submission(s): 28560Problem Description给定一个日期,输出这个日期是该年的第几天。
2014-10-08 16:30:06 380
原创 Problem 2004
#include using namespace std;int main(){ int a; char b; while (cin >> a){ if (a>=0 && a if (a>=60){ if (a>=80){
2014-10-08 15:42:46 336
原创 Problem 2003
求绝对值Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 66805 Accepted Submission(s): 34066Problem Description求实数的绝对值。 Input输
2014-10-08 15:21:10 303
原创 Problem 2002
求绝对值Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 66804 Accepted Submission(s): 34065Problem Description求实数的绝对值。 Input输
2014-10-08 15:14:04 343
原创 Problem 2001
计算两点间的距离Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 98017 Accepted Submission(s): 37615Problem Description输入两点坐标(X1,Y1),(X2,Y
2014-10-08 15:00:12 392
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人