摘要:题目: Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it i
阅读全文
随笔分类 - ACM&Leetcode
摘要:题目: Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it i
阅读全文
摘要:#include #include int main(){ int n; int i,j; int num[101];while(1){ int sum=0; memset(num,0,sizeof(num)); scanf("%d",&n); if(n==0) { break; } else{ n...
阅读全文
摘要:#include #include #include int n=100;int m=100000;double random()//生成0-1之间的随机数{ return (double)rand()/RAND_MAX;}int random2(int m)//生成[0,m-1]之间随机数{ re...
阅读全文
摘要:ACM小白。。。非常费劲儿的学习中,我觉得目前我能做出来的都可以划分在水题的范围中。。。不断做,不断总结,随时更新POJ:1004 Financial Management求平均值杭电OJ:1001 Sum Problem 相加1002 A + B Problem II 模拟人工加法-精度计算100...
阅读全文
|