| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 51 | 36 | 34 | 72.340% |
Imagine a very simple text editor that supports exactly two operations:
Initially, the screen contains a single character A. Your goal is to display exactly $N$ characters A on the screen using the minimum number of operations possible. Find the minimum number of operations required when acting optimally.
The first line contains a single integer $N,ドル representing the number of characters A to be displayed. $(1 \leq N \leq 1,000円,000円)$
Print a single integer: the minimum number of operations required.
| 번호 | 배점 | 제한 |
|---|---|---|
| 1 | 80 | 1ドル \leq N \leq 1,000円$ |
| 2 | 20 | 1ドル \leq N \leq 1,000円,000円$ |
9
6
AAAAAAAAAAAAAAAAAAAAAAAATotal steps = 6.
This example satisfies the conditions of Subtask 1 and 2.
1
0
This example satisfies the conditions of Subtask 1 and 2.
University > 서강대학교 > CSE4152 문제해결프로그래밍실습 > 2025-2학기 중간고사 코딩 테스트 1번