답안 #7799

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
7799 2014-08-19T10:19:00 Z whiteout 다각형 (GA5_polygon) C++
100 / 100
0 ms 1672 KB
#import<iostream>
long long a,b,x;main(){std::cin>>a>>b;a++,a/=2,a--,b/=2;x=b*(b+1)-a*(a+1);if(a==0&&x)x-=2;std::cout<<x;}
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1672 KB Output is correct
2 Correct 0 ms 1672 KB Output is correct
3 Correct 0 ms 1672 KB Output is correct
4 Correct 0 ms 1672 KB Output is correct
5 Correct 0 ms 1672 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1672 KB Output is correct
2 Correct 0 ms 1672 KB Output is correct
3 Correct 0 ms 1672 KB Output is correct
4 Correct 0 ms 1672 KB Output is correct
5 Correct 0 ms 1672 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 1672 KB Output is correct
2 Correct 0 ms 1672 KB Output is correct
3 Correct 0 ms 1672 KB Output is correct
4 Correct 0 ms 1672 KB Output is correct
5 Correct 0 ms 1672 KB Output is correct