Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

对石头个数取余,然后dfs过了。。但貌似有问题

Posted by wander_alone at 2013-05-16 17:24:06 on Problem 1014
对个数取余
int a[7];
int b[7] = {1, 60, 30, 20, 15, 12, 10};
for(i = 1; i < 7; i++)
    a[i] = a[i] % b[i];

然后dfs,AC了
但是测试这样一组数据:
0 0 0 15 0 0

结果为
Can be divided.

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator