2013年7月25日

Hamming Codes

摘要: /*ID: weitong4LANG: C++TASK: hamming*/#include#include#define max 64int ans[max+5];int N,B,D;bool ham_dis(int x,int y){ int cnt=0; for(int i=0;i>=1; ... 阅读全文

posted @ 2013-07-25 21:05 Stomach_ache 阅读(187) 评论(0) 推荐(0) 编辑

poj 2115 扩展欧几里德

摘要: 1 #include 2 #include 3 #define max 32 4 5 typedef long long LL; 6 LL pow2[max+5]; 7 8 void init(){ 9 for(int i=1;i<=max;i++){10 pow2[i... 阅读全文

posted @ 2013-07-25 20:03 Stomach_ache 阅读(145) 评论(0) 推荐(0) 编辑

ubuntu查看并杀死进程

摘要: Ubuntu 查看和杀死进程今天在netbeans中关闭webrick时,发现没有关闭掉,打入localhost:3000 依然显示页面,发现无法从nb中再次关闭只有进入ubuntu的进程下关闭查看进程:1,ps -e 命令 2,feng@feng:~$ sudo netstat -antupAct... 阅读全文

posted @ 2013-07-25 16:53 Stomach_ache 阅读(280) 评论(0) 推荐(0) 编辑

USACO 2.1.4

摘要: 1 /* 2 ID: weitong4 3 LANG: C++ 4 TASK: holstein 5 */ 6 #include 7 #include 8 #define v_max 25+5 9 #define g_max 15+510 11 int v,g;12 int a[v_max],b[... 阅读全文

posted @ 2013-07-25 13:50 Stomach_ache 阅读(116) 评论(0) 推荐(0) 编辑

导航