摘要: #include <stdio.h> struct Date { int year; int month; int day; }; int main(){ struct Date p; scanf("%d %d %d", &p.year, &p.month, &p.day); int a[12] = 阅读全文
posted @ 2018-12-17 19:52 可爱到冒泡 阅读(9424) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>long jc(int x); int main() { int a, b, c, d, e, f, g; long m1, m2, m3, m4, m5, m6, n1, n2, n3, n4, n5, n6; for(a = 1; a <= 9;a++) { 阅读全文
posted @ 2018-12-17 19:22 可爱到冒泡 阅读(5533) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <string.h> int main(){ char a[100]; char b[100]; char c[100]; char t[100]; gets(a); gets(b); gets(c); if(strcmp(a, b) > 0) 阅读全文
posted @ 2018-12-15 19:15 可爱到冒泡 阅读(4698) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int f(int N){ if (N < 4) return 1; else return f(N - 1) + f(N- 3);}int main(){ int N; scanf("%d", &N); printf("%d",f(N));} 阅读全文
posted @ 2018-12-15 13:44 可爱到冒泡 阅读(2692) 评论(0) 推荐(0) 编辑
摘要: 只有1行,为2个正整数,用一个空格隔开: k N (k、N的含义与上述的问题描述一致,且3≤k≤15,10≤N≤1000)。 计算结果,是一个正整数(在所有的测试数据中,结果均不超过2.1*10^9)。(整数前不要有空格和其他符号)。 #include<stdio.h> int n2[1010];l 阅读全文
posted @ 2018-12-14 23:56 可爱到冒泡 阅读(3708) 评论(0) 推荐(0) 编辑