- 博客(8)
- 问答 (1)
- 收藏
- 关注
原创 java面试总结1
没怎么准备,走出校门,直接去人家公司面试,当时啥都没想,结果被人说的啥都不会还出来找工作,我只能笑着说多少还知道点,回到住处当时就打算买回学校的火车了。不过没买,就在我绝望之际,我接到了复试通知,当时就蒙了,还有戏,第二天屁颠屁颠的去复试,TMD,连普通话都讲不好,沟通有障碍,人家貌似也看不上我。直接还面试官,这个面试官还课一比刚才的强点,一面二,面试官问例外一个人的时候,我想答案的时间很长,该我
2015-09-25 08:00:56 325
原创 hdoj1048 解密秘文
#include #include char s[10000],st[10],sed[10]; int main() { int i,l; while(1) { gets(st); if(strcmp(st,"ENDOFINPUT")==0) break; gets(s); l=strlen(s); for
2014-04-19 09:26:59 441
原创 hdoj 1280 前m大的数!
思路:这题和矩阵转置有一点联系,它们两两相加得到的N*(N-1)/2个和,其实就是矩阵的上三角或下三角,这一点解决了,再来个qsort就搞定啦! 注意数组的大小! #include #include int comp(const void *a,const void *b) { return *(int *)b-*(int *)a; } int a[3005],c[5
2013-08-07 09:55:06 426
原创 HDOJ 1029 qsort
Online Judge Online Exercise Online Teaching Online Contests Exercise Author F.A.Q Hand In Hand Online Acmers Forum | Discuss Statistical Charts Problem Archive Realtime Judge Statu
2013-08-06 17:58:21 407
原创 HDOJ 2501 Tiling_easy version
这道题和hdoj2046http://acm.hdu.edu.cn/showproblem.php?pid=2046有一点点不一样 2046 骨牌规格2 x 1 递推公式 f[n] = f[n-1] + f[n-2] 2501骨牌规格分别是 2 x 1 和 2 x 2 递推公式 f[i]=f[i-1]+2*f[i-2];
2013-08-05 20:51:25 446
原创 HDOJ 2503 计算分数加法
其实这题也没啥要说的,要注意的是fz=a*g/b+c*g/d;不要写成fz=g/b*a+g/d*c; 还有for(int i=1;i #include int f(int a,int b) /*求最小公倍数的函数*/ { int i=0; for(i=a;i { if(i%b==0) break; } return i; } int yue(int a,int
2013-08-05 17:30:17 497
原创 hdoj 1406 衰( ⊙ o ⊙ )!
完数 衰( ⊙ o ⊙ )!明显一道水题,我提交了3遍,第一次问题 (包括num1和num2) 2, 把“ =写成了==”(心里想着交换的,还给弄错了!,哎!)#include int main() { int n,m1,m2,i,j,cnt,p,t; scanf("%d",&n); while(n--) {
2013-08-03 15:26:19 373
原创 HDOJ 1004 Water~
hdoj 1004 结构qsort 详见http://wenku.baidu.com/view/3a1c6900bed5b9f3f90f1c03.html #include #include #include struct Balloon{ char ch[18]; int c; }Balloons[1005]; int cmp( struct Balloon *a, struct Ba
2013-07-31 21:05:08 577
空空如也
mysql 数据库update时出错,错误代码 SQL ERROR :1213
2017-11-06
TA创建的收藏夹 TA关注的收藏夹
TA关注的人