摘要:
View Code /* Name: 拓扑排序,多次拓扑 Copyright: Author: Try86 Date: 16/04/12 21:36 Description: */#include <cstdio>#include <cstdlib>#include <cstring>#include <iostream>using namespace std;const int N = 27;bool ch[N];char ans[N]; //存拓扑序 int inDeg[N]; //入度数 struct node { int v; node 阅读全文
posted @ 2012-04-16 22:06
Try86
阅读(143)
评论(0)
推荐(0)
摘要:
View Code /* Name: 日期相关 Copyright: Author: Try86 Date: 15/04/12 23:32 Description: */#include <cstdio>#include <iostream>using namespace std;bool isLeap(int year) { if (year%400==0 || year%4==0&&year%100!=0) return true; return false;} int main() { int t; scanf ("%d", & 阅读全文
posted @ 2012-04-16 07:34
Try86
阅读(238)
评论(0)
推荐(0)