I_love_Computer_science's blog

By I_love_Computer_science, history, 10 months ago, In English

Hello, I want to solve this classic problem. Could you please help me by sharing the solution approach, some code ideas, and a link to the problem? I would be very happy if you could share these with me.

Thank you!


You have a standard 8×8 chessboard and a knight placed on a starting cell (x,y) — coordinates are 1-based (from 1 to 8). Your task is to find a sequence of knight moves such that: The knight visits every square on the board exactly once (i.e., it makes 64 moves in total, including the starting square). The sequence forms a closed tour, meaning that after the knight’s final move (the 64th move), the knight can move again by a single knight’s move to return to the starting cell (x,y). If such a closed knight’s tour exists from the given starting position, print the board with numbers 1 through 64, where the number at each cell represents the move number when the knight visits that cell. Otherwise print "No".

Full text and comments »

By I_love_Computer_science, history, 21 month(s) ago, In English

I need advice to become carefully??? I missed out on a medal at the Olympiad because of my caution.

Full text and comments »

By I_love_Computer_science, history, 2 years ago, In English

Requirements:to be as least cyan.This my alt account.My main account I close to expert.You see my last performance in my last contest.I want to train with him IOI.

Full text and comments »

By I_love_Computer_science, history, 2 years ago, In English

After 1 year I start to CP.I don't need algorithm book I need learning c++ like vector and how to use vector

Full text and comments »

By I_love_Computer_science, history, 3 years ago, In English

I always careless,What Should i do to be carefully!

Full text and comments »