Submission #43870

#TimeUsernameProblemLanguageResultExecution timeMemory
43870adminscanf 함수 5 (BSC_0_7)C++17
100 / 100
2 ms836 KiB
#include <bits/stdc++.h>
using namespace std;

pair<int, int> read() {
	int a, b;
	cin >> a >> b;
  return make_pair(a, b);
}

int main() {
  if(const auto [x, y] = read(); (x + y) % 2 == 0) {
    cout << (x + y) / 2 << endl;
  }else {
    cout << (x + y) / 2 << ".5" << endl;
  }
  return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...