-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRobot.java
More file actions
21 lines (20 loc) · 713 Bytes
/
Robot.java
File metadata and controls
21 lines (20 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//Klepach Bogdan
// íàõîæäåíèå êîëè÷åñòâî âîçìîæíûõ ïóòåé äî òî÷êè
//íà âûõîäå ìàòðèöà èñêîìàÿ + îòâåò â çàäàííîé òî÷êå
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Robot {
public static void main (String args[]) throws IOException{
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
System.out.print("write a size of field= ");
int n =Integer.parseInt(input.readLine());
//System.out.println(n);
int x,y;
System.out.print("x= ");
x = Integer.parseInt(input.readLine());
System.out.print("y= ");
y = Integer.parseInt(input.readLine());
Pathfinding.pathfinding(x,y,n);
}
}