摘要: //杭电的一道月赛题,当时也做过了//第一次提交用c++写,虽然过了,但感觉效率好低,然后用c重写了一遍。。。#include <stdio.h>#include <string.h> int main(){ char a[100]; int p,d,n,x,sum,m; scanf("%d",&p); while(p--) { sum = 0; scanf("%d",&d); getchar(); gets(a); scanf("%d",&n); printf("%d &qu 阅读全文
posted @ 2013-01-25 22:22 see_why 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Tree SummingBackgroundLISP was one of the earliest high-level programming languages and, with FORTRAN, is one of the oldest languages currently being used. Lists, which are the fundamental data structures in LISP, can easily be adapted to represent other important data structures such as trees.This 阅读全文
posted @ 2013-01-25 16:27 see_why 阅读(231) 评论(0) 推荐(0) 编辑