문제
1 2 3 4 5 6 7 8 9 10 11 | #include <iostream> #include <cmath> int main() { int a, b; std::cin >> a >> b; std::cout << (b - (int)sqrt(b)) - (a-1 - (int)sqrt(a-1)); return 0; } | cs |
'algorithm ' 카테고리의 다른 글
더블릿|dovelet - 조아나와 홀수/joana (0) | 2016.07.18 |
---|---|
더블릿|dovelet - 층 수 구하기/flr (0) | 2016.07.18 |
더블릿|dovelet - 대각선 교차점/coci_intersect (0) | 2016.07.18 |
더블릿|dovelet - 선의 수 구하기/complete_graph (0) | 2016.07.16 |
dovelet - x 길이 구하기/x_length (0) | 2016.07.16 |