http://ace.delos.com/usacoprob2?a=apdOY9i86bK&S=milk3
分析:每次只有六种选择,可以用递归。
代码如下:
#include <iostream>
#include <fstream>
#include <string.h>
#include <math.h>
#include <stdlib.h>
using namespace std;
int A,B,C;
void DFS(int,int,int);
bool tong[22][22][22];
bool ans[22];
int main()
{
}
void DFS(int a,int b,int c)
{
}