Submission #5892

# Submission time Handle Problem Language Result Execution time Memory
5892 2014-05-21T11:16:52 Z baneling100 다각형 (GA5_polygon) C++
0 / 100
0 ms 1088 KB
#include <stdio.h>

long long A, B, Ans;

int main(void)
{
    scanf("%lld %lld",&A,&B);
    if(B>=4)
    {
        Ans=((B+1)/2)*((B+1)/2+1)-((A-1)/2)*((A-1)/2+1);
        if(A<=2)
            Ans-=2;
    }
    printf("%lld",Ans);
    return 0;
}
# 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 Incorrect 0 ms 1088 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -