8000 [Bronze V] Title: 구구단, Time: 88 ms, Memory: 9344 KB -BaekjoonHub · tkhwang/tkhwang-algorithm@46fdd28 · GitHub
[go: up one dir, main page]

Skip to content

Commit 46fdd28

Browse files
committed
[Bronze V] Title: 구구단, Time: 88 ms, Memory: 9344 KB -BaekjoonHub
1 parent 358c981 commit 46fdd28

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# [Bronze V] 구구단 - 2739
2+
3+
[문제 링크](https://www.acmicpc.net/problem/2739)
4+
5+
### 성능 요약
6+
7+
메모리: 9344 KB, 시간: 88 ms
8+
9+
### 분류
10+
11+
구현, 수학
12+
13+
### 제출 일자
14+
15+
2025년 3월 8일 06:51:03
16+
17+
### 문제 설명
18+
19+
<p>N을 입력받은 뒤, 구구단 N단을 출력하는 프로그램을 작성하시오. 출력 형식에 맞춰서 출력하면 된다.</p>
20+
21+
### 입력
22+
23+
<p>첫째 줄에 N이 주어진다. N은 1보다 크거나 같고, 9보다 작거나 같다.</p>
24+
25+
### 출력
26+
27+
<p>출력형식과 같게 N*1부터 N*9까지 출력한다.</p>
28+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const fs = require('fs');
2+
const input = fs.readFileSync("/dev/stdin").toString().split("\n");
3+
4+
const n = Number(input[0]);
5+
6+
for (let i = 1; i <= 9; i += 1) {
7+
console.log(`${n} * ${i} = ${n * i}`);
8+
}

0 commit comments

Comments
 (0)
0