Submission #318454

# Submission time Handle Problem Language Result Execution time Memory
318454 2020-11-02T01:01:36 Z codemaster111 scanf 함수 5 (BSC_0_7) C++17
0 / 100
1 ms 364 KB
#include <iostream>
using namespace std;

int main() {
    int a, b;
    cin>>a>>b;
    if((a+b)%2==0) {
    	cout<<(a+b)/2;
    } else {
    	double avg=(a+b)/2;
    	cout<<avg;
    }
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Incorrect 1 ms 364 KB Output isn't correct
3 Halted 0 ms 0 KB -