Sgu 220 ~ 229

Source: Internet
Author: User

There will be a bunch of Sb questions. In the future, Sb questions will not be coded at a glance to improve efficiency.

220 little bishops

Question: Ask N * n to put K pictures on the board. The pictures can attack each other on the diagonal lines.

SB question.

221 big bishops

As shown above, if the field is not changed, you can add a high precision. Now I can write errors with high precision, or roll back to PJ ..

222. Little Rooks

Question: N * n about the number of parking solutions. N is up to 10.

Nima, I really rolled back to the PJ group !? I have read books.

223 little king

Question: change the car into a king.

Pressure directly.

224. Little queens

Question: Eight queens.

I wiped it.

225. Little knights

Question: release a horse.

Is there pressure for direct compression? The disgusting sgu has to be typed ..

226. colored graph

For a directed graph, the arc has a color, and the path of the nearest adjacent arc is different in color.

In spfa, record f [I] [J] To point I. The color is the minimum value of the path J.

227. The art to the broad masses!

Question: give n arcs and calculate the intersection.

Oh, just let it go. Why is it just such a person ..

228. archipelago

Question: give a positive n edge three adjacent points and find other points.

Vector rotation.

229. Divide and conquer

To give a 01 matrix, divide it into two sub-matrices in the form of sums so that its sub-matrices are rotated, and all 1 is moved in the same pan at the same time.

SX Simulation

Sgu 220 ~ 229

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.