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

35007번 - Nine Out Of Ten 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 2048 MB43332071.429%

문제

A mad scientist conducted $n$ independent identical experiments and claimed that $x$ of them were successful. It is well known that the mad scientist is wrong in exactly 90\% of cases when determining the success of a single experiment. Your task is to write a program that calculates the minimum and the maximum possible number of successful experiments for all $x$ from 0ドル$ to $n$. It is guaranteed that the total number of experiments is always divisible by 10ドル$.

입력

The first line contains a single integer $n,ドル which is a multiple of ten (10ドル \le n \le 10,000円$).

출력

Print $n + 1$ lines. On the $i$-th line, output two integers separated by a space: the minimum and the maximum possible number of successful experiments for $x = i - 1$.

제한

예제 입력 1

10

예제 출력 1

9 9
8 10
7 9
6 8
5 7
4 6
3 5
2 4
1 3
0 2
1 1

노트

출처

ICPC > Regionals > Northern Eurasia > Northwestern Russia Regional Contest > ICPC 2025-2026 Northwestern Russia Qualification D번

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

출처

대학교 대회

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

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