#include <iostream> #include <cstdio> #include <vector> #include <algorithm> using namespace std; int a[10][10]; struct pos{ int x, y; int remain; pos(int px, int py, int premain) : x(px), y(py), remain(premain) {}; int getx() {return x;} int gety() {retu...