Skip to content

Commit

Permalink
Add 18408.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyabye authored Jan 12, 2024
1 parent 6cf436d commit 6df9f03
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 18xxx/18408.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>
using namespace std;

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

cout << (a+b+c+1)/3;
}

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

solve();
return 0;
}

0 comments on commit 6df9f03

Please sign in to comment.