Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Add solution of #118 #123

Merged
merged 3 commits into from
Jul 8, 2022
Merged

Feat: Add solution of #118 #123

merged 3 commits into from
Jul 8, 2022

Conversation

SongSiWoon
Copy link
Collaborator

#118 문제풀이

2022-07-06
@SongSiWoon

문제

소스코드

#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);
}

@SongSiWoon SongSiWoon added C++ This code is wrote by C++ SongSiWoon🐯 labels Jul 5, 2022
@Dltmd202 Dltmd202 merged commit 472e680 into master Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C++ This code is wrote by C++ SongSiWoon🐯
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants