自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 不可思议

http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2564此题 我用了scanf  和 gets 两种输入  有一种超时  超时的代码#include  #include  #define N 1002  int main()  {      ch

2013-04-30 21:24:50 399 2

原创 被此题坑了

#include#includeint n;char st[100000],t[100];char trans(){ int a=0,b=1; for(int i=4; i>=0;i--) { if(t[i]>='0'&&t[i]'9') { a+=b; } b*=2;

2013-03-09 18:39:13 536

原创 子串

#include#includeint main(){ int n,i,k,a,b,x,j; char st1[1000003],st2[7]; scanf("%d%*c",&n); while(n--) { x=0; scanf("%s %s",st1,st2); a=strlen(st1);

2013-03-09 18:37:21 491

原创 水题

#include#includeint main(){ int n,t,m; scanf("%d",&m); while(m--) { scanf("%d",&n); t=(int)sqrt(n*1.0); for(;t>=1;t--) { if( n%t==0 && (n

2013-03-09 18:33:25 424

原创 第一周周赛

#include #include #include char s[31][100000];int main(){    int n,i,j,m;    int t,f;    s[1][0]='1';    s[1][1]='\0';    for(i=2;i    {        t=1;        f=0;        for(

2013-03-09 18:30:25 411

原创 要学会有算法写出代码

通过这几天的学习,我又找到了自己学习方法的不足:就是不会根据算法写出完整的代码。今天学习了Dijkstra算法,自己听明白了,就是不能写出完整的代码。仔细想一想还是以前做的不好,才导致今天的下场---看着水题干瞪眼。自己以前学习就是靠着整套代码去理解算法,开始是可以的,可是不能够一直这样下去。久之,你会发现你离开整套代码就会寸步难行。在此,写下自己的体会,希望对你们有所帮助。

2013-02-27 14:50:51 612

原创 大数减法

http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2525比加法复杂,要考虑三种情况,n1>n2;  n1#include#includeint f(char st1[],char st2[]){    if(strlen(st1)>strlen(st2))

2013-02-25 21:04:20 207

原创 大数加法

题目描述Now,we know that Yuanfang is the best student in the class. Every time when the teacher comes up with a hard problem and it seems no student can solve it, He always says: "Yuanfang , what do y

2013-02-25 14:51:32 336 1

原创 猜拳游戏

/*#include#include#includeint main(){ int a,b,k=0,t=0; //游戏规则 printf("┌───────┐\n"); printf("│0--石头       │\n"); printf("│1--剪刀       │\n"); printf("│2--布         │\n"); printf("

2013-07-15 15:03:24 378

原创 体力耗费

http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2100#include#include#includeusing namespace std;int main(){ priority_queue,greater > q; int n,a1,a2,a3; int su

2013-06-21 20:57:11 485

原创 腾讯马拉松赛后感

今天,参加了腾讯马拉松比赛。看到第一题我就高兴了,大水题一个。然后没读完题,看了数据就开始做。可按照我的理解老是运行不出结果。我以为是我的输出格式错了,就在那改,终于改对了,交上WA.然后再改,一连4次WA。还有二十分钟的时候,我才决定好好看看题。仔细一读,果然是我理解错了,输出的是第几个裁判,我一直理解为输出平均分数。唉。。。。。。怪自己太大意了,还好最后A了。无论多么水的题,都不能大意,要

2013-03-24 21:51:43 561

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除