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

23432번 - Steve's perfectionism 스페셜 저지다국어

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

문제

Steve is a hopeless perfectionist. He's been stumbling upon arrays of positive integers, but he doesn't always enjoy what he's seeing. Steve likes an array if and only if it is strictly ascending. Arrays that Steve doesn't like must be changed asap, otherwise Steve will be disappointed. The new array will satisfy Steve only if its initial length is retained, and its elements are divisible by the corresponding elements of the old array. Note that an array can be satisfactory from the start. In this case, it can be left alone (or not, if you want change).

Make Steve happy! Write a program that can instantly produce new, likeable arrays.

입력

The first line of the input file contains a single integer $n$ --- the number of elements in the array that Steve has laid his eyes on (2ドル \le n \le 1000$). The second line of the input file contains $n$ space-separated positive integers $a_i$ (1ドル \le a_i \le 10^6$).

출력

In the output file, print $n$ positive integers $a_i$ (1ドル \leq a_i \leq 10^9$) --- the new array, which Steve will like.

There can be several solutions: print any of them.

제한

예제 입력 1

7
1 10 5 4 3 2 7

예제 출력 1

1 10 15 20 30 32 35

힌트

출처

Contest > Open Cup > 2019/2020 Season > Stage 7: Grand Prix of Siberia E번

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

출처

대학교 대회

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

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