- 博客(5)
- 资源 (2)
- 收藏
- 关注
原创 1029. Median (25) @ PAT (Advanced Level) Practise
这题还算简单,很明显是用归并排序,其它排序可能会超时,另外,要用stdio,不然也会超时。还有就是注意是long,int会产生错误 。 #include #include using namespace std; int main() { long N,M,m; vector v1,v2; scanf("%ld",&N); v1.resize(N); f
2013-09-08 09:31:32 449
原创 1028. List Sorting (25) @ PAT (Advanced Level) Practise
水题,注意点:1 我用iostream会有一个case超时 2 id要用char * 而不是用int,不知道为什么~ #include #include #include #include using namespace std; struct Record { char id[7]; char name[8]; int mark; }; bool cmp
2013-09-07 20:35:27 539
原创 1027. Colors in Mars (20) @ PAT (Advanced Level) Practise
水题 #include #include using namespace std; vector transfer(int i) { int tmp; vector result; while(i>12) { tmp=i%13; result.push_back(tmp>9?('A'+tmp-10):('0'+tmp)); i/=13; } result.push_ba
2013-09-07 15:16:47 529
原创 1026. Table Tennis (30) @ PAT (Advanced Level) Practise
附AC的链接 http://blog.csdn.net/ryvipa/article/details/8584282 26分,有2个case答案错误 #include #include #include #include using namespace std; int N,K,M; int lfh,lfm,lfs; struct Table { int h,m,s; b
2013-09-07 14:40:20 569
原创 ubuntu 13.04安装JDK & android studio
首先安装Jdk 将jdk装在/usr/lib/jvm 下比较好,否则在打开android studio时会出错 http://stackoverflow.com/questions/16576355/plugin-com-intellij-failed-to-initialize-and-will-be-disabled-null JDK下载地址http://www.orac
2013-09-01 16:53:44 701
effective java chm
2012-10-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人