随笔分类 - Stanford's ACM Training Course
摘要:由于这几天各种忙,于是拖到现在才解决Chapter#03.这里是课件: Data Structure下面是这次的作业。。。Assignment 3: Data Structures·2418 Hardwood Species (1)统计相同字符串的个数,用BST或者排序都可以解决,我是用BST做的,第一次用指针打数据结构,打的真是头痛...View Code #include <stdio.h>#include <string.h>#include <stdlib.h>struct node{ char name[32]; int count; n
阅读全文
摘要:搞定了第二章。。。。先上课件:MathematicsAssignment 2: Mathematics·1799 Yeehaa! (1)简单平面几何证明,答案是r*sin(π/n)/(1+sin(π/n)),我就不需要证明了吧(不会的自己画图就可以证明,不过估计这个连初中生都会)。。。View Code #include <stdio.h>#include <math.h>#define PI 3.1415926int main(){ int test,n,i; double r; scanf("%d",&test); for (i
阅读全文
摘要:最近想要完成Stanford's ACM Training Course,我会将课件和练习题发上来。Coding ExerciseAssignment 1: Coding Exercise·1000 A+B Problem (0)这道题目没有什么好说的。。。View Code #include <stdio.h>int main(){ int a,b; scanf("%d %d",&a, &b); printf("%d\n",a+b); return 0;}·1004 Financial Manag
阅读全文

浙公网安备 33010602011771号