随笔分类 - 模拟
摘要:这题是模拟题...不要想复杂了哦 呵呵#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, &
阅读全文
摘要:这种处理日期的方法很值得学习!很巧妙!#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"
阅读全文
摘要:#include <stdio.h>#include <string.h>char haabMonth[19][10] = {"pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "mac",
阅读全文

浙公网安备 33010602011771号