-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[goormlevel] Title: 정사각형의 개수, Time: 0.08 ms, Memory: 10.02 MB, Diffic…
…ulty: 1 -BaekjoonHub
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# 정사각형의 개수 - 49086/1 | ||
|
||
[문제 링크](https://level.goorm.io/exam/49086/%EC%A0%95%EC%82%AC%EA%B0%81%ED%98%95%EC%9D%98-%EA%B0%9C%EC%88%98/quiz/1) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 10.02 MB, 시간: 0.08 ms | ||
|
||
### 제출 일자 | ||
|
||
2024년 07월 02일 10:41:37 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# -*- coding: utf-8 -*- | ||
# UTF-8 encoding when using korean | ||
import sys | ||
input = sys.stdin.readline | ||
n = int(input()) | ||
sum = 0 | ||
for i in range(1,n+1): | ||
sum += i**2 | ||
print(sum) |