[HackerRank] Encryption
출처 : https://www.hackerrank.com/challenges/encryption/problem #include using namespace std; string encryption(string s) {string ans;int L = s.length(), row = sqrt(L), col = row + 1, it = 0; if (row*row == L) col -= 1;if (row*col < L) row += 1;char arr[10][10]; memset(arr, 0, sizeof(arr));for (int i = 0; i < row; i++) {for (int j = 0; j < col && it
알고리즘/기타
2018. 9. 30. 17:02
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 미세먼지 안녕!
- hackerrank
- SWEA
- SW Expert Academy
- 게리맨더링 2
- string
- 17140
- 2018 카카오 블라인드 채용
- 팁
- DP
- 역량 테스트
- 17837
- 이차원 배열과 연산
- 입출력
- 시간 복잡도
- 트렌드
- 17144
- boj
- 새로운 게임 2
- DFS
- 17142
- 17143
- 삼성
- 백준
- 연구소 3
- STL
- 2018 KAKAO BLIND RECRUITMENT
- 알고리즘
- scanf
- 17779
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함