蓝色xx邮
蓝色xx邮
关注数: 19
粉丝数: 20
发帖数: 310
关注贴吧数: 2
今晚凌晨1点到南京,求破 应该是明天的凌晨了……
问问吧友:怎样解决吃饭问题 现在在学校,但是饭卡丢了,现在学校办新卡的办事人员还未上班,怎样解决吃饭问题啊,吧友们有好方法没?(难道要天天叫外卖)
我的帖子上csdn首页了。。。。 嘿嘿,有兴趣的可以看一下我的帖子。。http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fcommunity.csdn.net%2F&urlrefer=40c2ee8ec18abb4f42cbecf19598da13
谁是董安文?我捡到你到的饭卡了 rt
今晚凌晨1点到南京,求破 应该是明天的凌晨了……
今天有在杭电上玩阿里巴巴公开赛的吗? 有过5题以上的大牛吗?
问问吧友:怎样解决吃饭问题 现在在学校,但是饭卡丢了,现在学校办新卡的办事人员还未上班,怎样解决吃饭问题啊,吧友们有好方法没?(难道要天天叫外卖)
我的帖子上csdn首页了。。。。 嘿嘿,有兴趣的可以看一下我的帖子。。http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fcommunity.csdn.net%2F&urlrefer=40c2ee8ec18abb4f42cbecf19598da13
谁是董安文?我捡到你到的饭卡了 rt
很久没来了,以前的吧主好像只有RichSelian了。。。。。。 其他的呢。。。。。。。。。
莲哥,再次求教 14r-468,重装一次系统后,出现蓝屏,怎么解
莲~,进来看看我的14r-468怎么回事,急急急急 我的14r本来开始就启动一个intel wifi技术(但是显示被禁用) 但是今天不知道怎么这个开机启动的就不启动了,而且是莫名奇妙就不在那个任务栏 更为重要的是,现在通过无线上网是一会就断,要从连才好,但是不久又会断, 莲,急求原因与方法。。。。
01背包问题求解,各位高手进啊,给个思路 超市中一共有N(1<=N<=15)种商品,因为超市长时间没有进货,导致每种商品都仅剩下一件。第i种商品的价格为mi(1<=mi<=10^9),它的实用度为pi(0<=pi<=10000)。YM希望购买商品的总花费不超过M(0<=M<=10^9)。同时,超市今天正好有促销活动,只要购买商品的总花费不低于M1(0<=M1<=10^9),超市将赠送一件价格不超过M2(0<=m2<=10^9)的商品。YM希望购买的商品实用度的总和最大。 输入 多组输入数据。每组输入数据第一行有两个整数N和M。接下来N行,第i行有两个整数mi和pi,表示第i件商品的价格和实用度。最后一行有两个整数M1和M2。 输出 每组数据输出一行,在花费不超过M的情况下,购买的商品最大的实用度总和。 样例输入 3 3 1 2 2 4 3 5 3 2 样例输出 9
好吧,我又纠结了。。。。。 众所周知,人类基因可以看作一个碱基对序列,它包含了4种核苷酸,简记为A,C,G,T。让我们观察这样一段基因序列 “ACCAGGTT”,这段序列共由8个核苷酸构成,其中第1位和第4位是碱基‘A’,第2位和第3位是碱基 ‘C’,第5位和第6位是碱基 ‘G’,第7位和第8位是碱基 ‘T’。Openxxx构造了这样一个0,1矩阵: 1, 0, 0, 1, 0, 0, 0, 0 0, 1, 1, 0, 0, 0, 0, 0 0, 1, 1, 0, 0, 0, 0, 0 1, 0, 0, 1, 0, 0, 0, 0 0, 0, 0, 0, 1, 1, 0, 0 0, 0, 0, 0, 1, 1, 0, 0 0, 0, 0, 0, 0, 0, 1, 1 0, 0, 0, 0, 0, 0, 1, 1 如果第i位的碱基与第j位的碱基一样,那么0,1矩阵的i行j列为1,否则为0。如果基因序列X与基因序列Y等长且具有相同的0,1矩阵,Openxxx就会认为X与Y是相似的基因序列。 现在的问题是:给你两段长度为N的基因序列,请你帮助Openxxx判断它们是否相似。 Input 多组测试数据,每组数据第1行输入一个正整数N(1≤N≤1000000),第2行和第3行分别输入两段长度为N的基因序列(只由A,C,G,T四种字符构成)。输入直至文件结尾。 Output 每组数据输出仅一行,如果相似则输出 “YES”,否则输出 “NO”,注意双引号不需要输出。 Sample Input 1 A G 2 AA TG Sample Output YES NO
发泄一下。。。。。。。。 昨天参加acm校队预赛选拔, 苦苦奋战五个小时,最后只AC了一题,这让我情何以堪啊。。。。 不爽不爽。。。。。。。。。。。。。。。。。
为什么本吧这么多广告贴。。。 吧主应该删一下吧
关于vc++中_int64类型的问题 注意:在 32 位 Intel 计算机上分配 64 位值不是原子操作;即该操作不是线程安全的。这意味着,如果两个人同时将一个值分配给一个静态 Int64 字段,则该字段的最终值是无法预测的 。。。。。。。。。。。。。。。。。。 上面是百度结果后的一段话,求解释
要崩溃了,求高手 题目如下 描述 线性表是n个元素的有序**(n³0),n是线性表中元素的个数,称为线性表的长度。可以用一组地址连续的存储单元依次存储线性表中元素,采用这种存储方式的线性表称为顺序表。 请在顺序表上实现运算,实现顺序表的逆置,删除表中所有元素值等于x的元素。 输入 三组数据,顺序表元素类型分别为整型、字符型和实型。 每一组第一行给出元素数目n(0<n≤1000),第二行给出元素数值,第三行给出待删除的元素。 输出 三组数据,每一组第一行为逆置后的顺序表元素,第二行是在此基础上删除指定元素后的顺序表元素 样例输入 8 1 2 3 7 5 6 7 8 7 3 a c m h 4 1.2 3.4 5.6 7.8 1.2 样例输出 8 7 6 5 7 3 2 1 8 6 5 3 2 1 m c a m c a 7.8 5.6 3.4 1.2 7.8 5.6 3.4
话说,怎么计算某年某月某日星期几,年份可以为负(即任意年) 请说思路。。。。 谢啦、。。。
一道偶数排序的题 给定n个正整数,对其中的偶数按递增次序排序。 输入 第一行是一个正整数:测试用例数目,最多为5。之后,每个测试用例包括两行: l 第1行给出整数数目n,1≤n≤100000,每个整数范围为 [0,100000) l 第2行给出n个整数 输出 对于每个测试用例: l 输出“Case #:”,#表示序号 l 输出偶数排序后的n个整数 样例输入 2 3 4 2 1 3 3 2 1 样例输出 Case 1: 2 4 1 Case 2: 3 2 1 下面是我的代码: #include<stdio.h> int main() { int ncount,count=1; int n,i,j; int temp,index; int a[100000]; scanf("%d",&ncount); while(ncount--) { scanf("%d",&n); for(i=0;i<n;++i) scanf("%d",a+i); for(i=0;i<n;++i) if(a[i]%2==0) break; for(;i<n-1;i++) { index=i; for(j=i+1;j<n;j++) if(a[j]%2==0&&a[j]<a[index]) index=j; if(index!=i) { temp=a[i]; a[i]=a[index]; a[index]=temp; } } printf("Case %d:\n",count++); for(i=0;i<n;++i) i==0?printf("%d",a[i]):printf(" %d",a[i]); printf("\n"); } } 代码运行超时,求更高效的代码。。。。 请说一下思路,或者使用的数据结构。。。
dell 14r 新买的机子,开机速度特别慢 有时1分钟,有时1分钟20秒,有时50多秒, 而且已经被360优化过了 开机项不知道那些可以被关闭
话说k&R的the c progamming language 请问一下,有多少人看过这本书,又有多少人全做过里面的习题, 或者说,里面的习题,能全都做出来??
有木有大四的学长?请教关于专业去向问题与实习问题… 各位学长给力啊
数媒啊数媒! 哥发现,自己也挺想做游戏的! 可惜,唉,大一,同学们对此兴趣不高....... 很纠结,现在正努力学习c++!数据结构...... 编程很有趣,真的! 最近想加入学校acm协会,以后希望自己能够参加国内大赛.... 新人无聊啊............
求助,下面代码为什么在vc6里有warning #include<iostream> #include<string> #include<vector> #include<algorithm> using namespace std; int main() { vector<string> words; string temp; while(cin>>temp) words.push_back(temp); cout<<"Number of words:"<<words.size()<<endl; sort(words.begin(),words.end()); for(int i=0;i<words.size();++i) if(i==0||words[i-1]!=words[i]) cout<<words[i]<<"\n\n"; return 0; }--------------------Configuration: play_02_23 - Win32 Debug-------------------- Compiling... play_01.cpp warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char ,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug information warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std:: char_traits<char>,std::allocator<char> > &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,int>' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(39) : warning C4786: 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information c:\program files\microsoft visual studio\vc98\include\vector(60) : warning C4786: 'std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::~vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >' : identifier was truncated to '255' characters in the debug information Linking... play_02_23.exe - 0 error(s), 4 warning(s)
1
下一页