#include using namespace std; int select(vector> const& mat,size_t j){ size_t n = mat.size(); for(size_t i=j;i>& mat,vector& b,int base){ size_t n = mat.size(); double c = mat[base][base]; for(size_t i=base;i solve(vector> mat,vector b){ size_t n = mat.size(); for(size_t i=0;i>n; vector> mat(n,vector(n,1)); for(int i=0;i y(n); for(auto& yi:y)cin>>yi; auto res = solve(mat,y); for(auto r:res)cout<