NYPC에서 풀었던 문제와 유사하다.
NYPC문제때는 급수를 이용해서 풀었었는데 틀리다고 나왔었다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
/** | |
* https://www.acmicpc.net/problem/14924 | |
* BOJ 백준온라인져지 14924 폰 노이만과 파리 풀이 | |
*/ | |
int main(){ | |
int trainVelocity, aFlyVelocity, distance; | |
scanf("%d%d%d", &trainVelocity, &aFlyVelocity, &distance); | |
printf("%d", distance / (trainVelocity * 2) * aFlyVelocity); | |
} |
'IT > 알고리즘' 카테고리의 다른 글
BOJ 백준온라인져지 14926 Not Equal 풀이 (0) | 2017.12.17 |
---|---|
BOJ 백준온라인져지 14925 목장 건설하기 풀이 (0) | 2017.12.16 |
BOJ 백준온라인져지 2206 벽 부수고 이동하기 풀이 (0) | 2017.12.15 |
BOJ 백준온라인져지 14923 미로탈출 풀이 (0) | 2017.12.15 |
BOJ 백준온라인져지 1456 거의 소수 풀이 (0) | 2017.12.14 |