fork(5) download
  1. State ChokudaiSearch(State FirstState)
  2. {
  3. Heap<State>[] HStates = new Heap<State>[MaxTurn + 1];
  4. for (int i = 0; i <= MaxTurn; i++) HStates[i] = new Heap<State>();
  5. HStates[0].push(FirstState);
  6. int ChokudaiWidth = 1; //通称chokudai幅
  7. while (TimeCheck())
  8. {
  9. for (int t = 0; t < MaxTurn; t++)
  10. {
  11. for (int i = 0; i < ChokudaiWidth; i++)
  12. {
  13. if (HStates[t].top == null) break;
  14. var NowState = HStates[t].pop();
  15. foreach (var NextState in NowState.GetAllNextState())
  16. {
  17. HStates[t].push(NextState);
  18. }
  19. }
  20. }
  21. }
  22. var BestState = HStates[0].pop();
  23. return BestState;
  24. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cs(1,4): error CS1525: Unexpected symbol `State'
Compilation failed: 1 error(s), 0 warnings
stdout
Standard output is empty