Submission #7800

# Submission time Handle Problem Language Result Execution time Memory
7800 2014-08-19T10:20:03 Z Inhibitor 다각형 (GA5_polygon) C++
100 / 100
0 ms 1088 KB
#include<cstdio>
int main()
{
	long long a,b;
	scanf("%lld%lld",&a,&b);
	a=(a+1)/2; b/=2;
	if(a==1) a++;
	if(a>b) printf("0");
	else printf("%lld",(b-a+1)*(a+b));
}
# Verdict Execution time Memory 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
# Verdict Execution time Memory 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
# Verdict Execution time Memory 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