답안 #7821

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7821 2014-08-19T10:36:28 Z gs14092 다각형 (GA5_polygon) C++
100 / 100
0 ms 1088 KB
#import<cstdio>
long long x,y,r;
main()
{
    scanf("%lld%lld",&x,&y);
    if(x<3&&1<y)r-=2;
    x=(x+1)/2;
    y/=2;
    r+=y*y+y-x*x+x;printf("%lld",r);}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
3 Correct 0 ms 1088 KB Output is correct
4 Correct 0 ms 1088 KB Output is correct
5 Correct 0 ms 1088 KB Output is correct