Skip to content

Commit

Permalink
Feat: Add solution of #118
Browse files Browse the repository at this point in the history
  • Loading branch information
SongSiWoon committed Jul 5, 2022
1 parent 30de613 commit 6fd56c3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/BaekJoon/SongSiWoon/1085/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <algorithm>

using namespace std;
int main(){
int x, y, w, h;
scanf("%d%d%d%d", &x, &y, &w, &h);
int rx = w - x;
int ry = h - y;
int res = min({x, y, rx, ry});

printf("%d", res);
}

0 comments on commit 6fd56c3

Please sign in to comment.