728x90
[๋ฌธ์ ๋งํฌ] ๐
SW Expert Academy
SW ํ๋ก๊ทธ๋๋ฐ ์ญ๋ ๊ฐํ์ ๋์์ด ๋๋ ๋ค์ํ ํ์ต ์ปจํ ์ธ ๋ฅผ ํ์ธํ์ธ์!
swexpertacademy.com
ํ์ด
ํํ์ฌ๋ณํ ๋์ด = ๋ฐ๋ณ x ๋์ด
๋ชจ๋ ๋ณ์ ๊ธธ์ด๊ฐ N์ด๋ฏ๋ก N * N ์ ํด์ฃผ๋ฉด ๋๋ค.
Solution
test_case = int(input())
for tc in range(1, test_case + 1):
n = int(input())
print("#%d %d" % (tc, n * n))
728x90
'๐งฉ Algorithm > SWEA' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [SWEA] 12221. ๊ตฌ๊ตฌ๋จ2 (Python/D3) (0) | 2024.10.20 |
|---|---|
| [SWEA] 10505. ์๋๋ถ๊ท ํ (Python/D3) (0) | 2024.10.20 |
| [SWEA] 12368. 24์๊ฐ (Python/D3) (1) | 2024.10.20 |
| [SWEA] 3431. ์คํ์ด์ ์ด๋๊ด๋ฆฌ (Python/D3) (0) | 2024.10.20 |
| [SWEA] 13218. ์กฐ๋ณ๊ณผ์ (Python/D3) (0) | 2024.10.20 |