BYRBT
摘要: A:只可能有1 2 4、1 2 6、1 3 6三种情况,先把4分光然后就乱搞了。 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 int n,cnt[10]; 8 9 int main()10 {11 scanf("%d",&n);12 for (int a=1;acnt[2])24 {25 printf("-1\n");26 return 0;27 }28 while (cnt[6])29 {30 if (cnt[3... 阅读全文
posted @ 2013-09-10 15:31 zhonghaoxi 阅读(271) 评论(0) 推荐(0) 编辑
BYRBT