Submission #318454

#TimeUsernameProblemLanguageResultExecution timeMemory
318454codemaster111scanf 함수 5 (BSC_0_7)C++17
0 / 100
1 ms364 KiB
#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 timeMemoryGrader output
Fetching results...