250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- 직무면접
- BFS
- sw expert academy
- 알고리즘 문제
- STUDYENGLISH
- 코딩테스트
- 원서읽기
- dfs
- 원서
- the midnight library
- 완전탐색
- 백준
- nightroutine
- englishbook
- 쉬운 알고리즘 문제
- 알고리즘
- swexpertacademy
- 원서읽자
- MySQL
- PyQt
- 코테 대비
- 프로그래머스
- 삼성
- readingbook
- English
- 코테
- SQL
- 코테 준비
- D4
- sw expert
Archives
- Today
- Total
목록홀수 피라미드 (1)
시나브로
[D3] 8016. 홀수 피라미드
#include int main() { int test_case = 0; scanf("%d", &test_case); for (int q = 0; q < test_case; q++) { long long layer = 0; scanf("%d", &layer); long long box = 2 * (layer - 1)*(layer - 1) + 1; printf("#%lld %lld %lld\n",q+1 ,box, box + 4*(layer - 1)); } return 0; }
알고리즘/SW Expert Academy
2019. 10. 6. 11:09