Logo
(追記) (追記ここまで)

26015번 - Enjoyable Entree 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB130765464.286%

문제

For many days now, the canteen in Hilbert's Hotel has been offering its famous Fibonacci Soup. Today is the $n$th day that they offer the soup, and the recipe changes every day:

  • On the first day, it is a $\pi$-tato soup, made from a blend of local potato varieties, and served with onion strips and celery.
  • On the second day, it is a $\tau$-mato soup, consisting of puréed tomatoes, together with carrots, onions, garlic, and basil leaves on top.
  • On every day after that, the soup is made from two ingredients, the soup of the previous day and the soup of the day before that, mixed together in equal parts.

Find the composition of today's Fibonacci Soup.

입력

The input consists of:

  • One line with a single integer $n$ (1ドル \le n \le 10^{18}$), the current day.

출력

Output two real numbers $\pi$ and $\tau$ (0ドル \le \pi,\tau \le 100$), giving the percentages of $\pi$-tato soup and $\tau$-mato soup in the $n$th day's Fibonacci soup. Your answer will be accepted if the absolute or relative error is at most 10ドル^{-6}$.

제한

예제 입력 1

1

예제 출력 1

100.0 0.0

예제 입력 2

3

예제 출력 2

50.0 50.0

예제 입력 3

7

예제 출력 3

34.375 65.625

힌트

출처

ICPC > Regionals > Europe > Northwestern European Regional Contest > German Collegiate Programming Contest > GCPC 2022 E번

  • 문제를 만든 사람: Paul Wild
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /