백준 11780문제
#include #include using namespace std; #define INF 1e9 int d[100][100]; int v[100][100]; int main(){ ios_base::sync_with_stdio(0); int n,m; cin >> n >> m; for(int i=0 ;i> b >> c; if(d[a-1][b-1] > c) d[a-1][b-1] = c,v[a-1][b-1] = b-1; } for(int k=0 ;k