Virtual Judge 小白成长所需技能 简单搜索
LqingX
唯沉默是最高轻蔑
展开
-
I - 迷宫问题 SDUT
I - 迷宫问题 SDUT 定义一个二维数组: int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, }; 它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。 Input 一个5 ...原创 2019-01-23 19:37:00 · 195 阅读 · 0 评论 -
J - Oil Deposits SDUT
J - Oil Deposits codeforces The GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and cr...原创 2019-01-24 08:47:46 · 144 阅读 · 0 评论 -
A - 棋盘问题 SDUT
A - 棋盘问题 SDUT 在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。 Input 输入含有多组测试数据。 每组数据的第一行是两个正整数,n k,用一个空格隔开,表示了将在一个n*n的矩阵内描述棋盘,以及摆放棋子的数目。 n <= 8 ...原创 2019-01-22 11:26:50 · 179 阅读 · 0 评论 -
D - Find The Multiple SDUT
D - Find The Multiple SDUT Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not...原创 2019-01-22 19:24:38 · 170 阅读 · 0 评论 -
H - Visiting a Friend CodeForces - 902A
H - Visiting a Friend CodeForces - 902A Pig is visiting a friend. Pig’s house is located at point 0, and his friend’s house is located at point m on an axis. Pig can use teleports to move along the ax...原创 2019-02-07 10:26:57 · 143 阅读 · 0 评论