学习体会
成长中的海东青
这个作者很懒,什么都没留下…
展开
-
大数减法
http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2525 比加法复杂,要考虑三种情况,n1>n2; n1 #include #include int f(char st1[],char st2[]) { if(strlen(st1)>strlen(st2))原创 2013-02-25 21:04:20 · 204 阅读 · 0 评论 -
要学会有算法写出代码
通过这几天的学习,我又找到了自己学习方法的不足:就是不会根据算法写出完整的代码。 今天学习了Dijkstra算法,自己听明白了,就是不能写出完整的代码。仔细想一想还是以前做的不好,才导致今天的下场---看着水题干瞪眼。自己以前学习就是靠着整套代码去理解算法,开始是可以的,可是不能够一直这样下去。久之,你会发现你离开整套代码就会寸步难行。 在此,写下自己的体会,希望对你们有所帮助。原创 2013-02-27 14:50:51 · 596 阅读 · 0 评论 -
不可思议
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 · 396 阅读 · 2 评论 -
大数加法
题目描述 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 · 325 阅读 · 1 评论 -
猜拳游戏
/*#include #include #include int 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 · 372 阅读 · 0 评论