Algorithm
BOJ 1085 직사각형에서 탈출 c++
BOJ 1085 직사각형에서 탈출 cpp 백준 1085 직사각형에서 탈출 c++ #include using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int west, east, north, south; int x, y, w, h; cin >> x >> y >> w >> h; west = x; east = w - x; north = h - y; south = y; int arr[4] = {west, east, north, south}; sort(arr, arr+4); cout
2020. 11. 7. 10:02
최근댓글