Development./Problem solving.

[BAEKJOON] 2869 - 달팽이는 올라가고 싶다

Chuuu_DevCamp:) 2020. 10. 8. 00:08
반응형

www.acmicpc.net/problem/2869

#include <iostream>

int main()
{
    int up = 0, down = 0;
    unsigned long V = 0;
    std::cin >> up >> down >> V;
    std::cout << (V - down - 1) / (up - down) + 1;
    return 0;
}

'Development. > Problem solving.' 카테고리의 다른 글

[BAEKJOON] 1193 - 분수찾기  (0) 2020.10.08
[BAEKJOON] 2292 - 벌집  (0) 2020.10.08
[BAEKJOON] 5543 - 상근날드  (0) 2020.10.08
[BAEKJOON] 5014 - 스타트링크  (0) 2020.08.17
[BAEKJOON] 4344 - 평균은 넘겠지  (0) 2020.08.17