Skip to content

Commit

Permalink
Add 25628.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye authored Jan 8, 2024
1 parent 700d5a9 commit 57196d1
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 25xxx/25628.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <algorithm>
#include <iostream>
using namespace std;

void solve(void) {
int a, b; cin >> a >> b;

cout << min(a/2, b);
}

int main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr); cout.tie(nullptr);

solve();
return 0;
}

0 comments on commit 57196d1

Please sign in to comment.