제출 #19137

#제출 시각아이디문제언어결과실행 시간메모리
19137eaststarMathWorlds (YDX13_mathworlds)C++14
0 / 1
0 ms1084 KiB
#include <stdio.h>
int main(){
    long long x,y,z,t=0;
    char c;
    scanf("%lld%lld%lld",&x,&y,&z);
    if(x+y==z)c='+',++t;
    if(x-y==z)c='-',++t;
    if(x*y==z)c='*',++t;
    if(x%y==0&&x/y==z)c='/',++t;
    if(t==1)putchar(c);
    else puts("Invalid");
    return 0;
}
#Verdict Execution timeMemoryGrader output
Fetching results...