[Java] 구두 수선공 문제 (shoemaker's problem) - UVa 10026 문제
·
💡 CodingTest/UVa
[Java] 구두 수선공 문제 (shoemaker's problem) - UVa 10026 문제 onlinejudge.org/index.php?option=onlinejudge&Itemid=8&page=show_problem&problem=967 Online Judge 10026 - Shoemaker's Problem Time limit: 3.000 seconds onlinejudge.org 문제 설명 내 코드 👑 Key Point 인접한 두개의 곱셈을 이용하여 Index 행렬을 정렬하는 것이라 버블정렬을 이용하는것이 매우 쉽게 풀 수 있다. if(T[priority[y]]*P[priority[y+1]]>T[priority[y+1]]*P[priority[y]]) 다만 Bubble 정렬의 조건식 부분에서 ..
슬라임 통통
'버블정렬' 태그의 글 목록