随笔分类 -  模拟

摘要:这题是模拟题...不要想复杂了哦 呵呵#include <stdio.h>#include <stdlib.h>struct Person{ int num; int b[9]; void init(){ num = 0; }};Person person[1001];int book[100001];void makeset(int n){ for(int i = 0; i <= n; ++i) book[i] = -1;}int main(){ int m, n, times; while(scanf("%d%d",&m, & 阅读全文
posted @ 2011-04-16 21:13 L.. 阅读(237) 评论(0) 推荐(0)
摘要:这种处理日期的方法很值得学习!很巧妙!#include <stdio.h>int year[2] = {365, 366}; //0 非润年int month[2][12] = {{31,28,31,30,31,30,31,31,30,31,30,31},{31,29,31,30,31,30,31,31,30,31,30,31}}; //0 非润年的月份//2000年1月1日 Saturday char week[7][10]={"Saturday","Sunday","Monday","Tuesday" 阅读全文
posted @ 2011-04-10 06:01 L.. 阅读(204) 评论(0) 推荐(0)
摘要:#include <stdio.h>#include <string.h>char haabMonth[19][10] = {"pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac", 阅读全文
posted @ 2011-04-10 05:40 L.. 阅读(144) 评论(0) 推荐(1)