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
- 삼성 기출
- 백트래킹
- hackerrank
- koitp
- 알고리즘
- sw expert academy
- BFS
- 시뮬레이션
- Algorithm
- dfs
- 에라토스테네스의 체
- BOJ
- 삼성 SDS 대학생 알고리즘 특강
- 다이나믹 프로그래밍
- 잠실
- 해커랭크
- 완전탐색
- 브루트포스
- SWEA
- 백준
- 스택
- 그리디
- 구현
- C++
- dynamic programming
- DP
- 소수
- 맛집
- 동적 계획법
- PS
Archives
- Today
- Total
목록Sansa and XOR (1)
펭로그
[C++] HackerRank 해커랭크 Sansa and XOR
문제링크 : https://www.hackerrank.com/challenges/sansa-and-xor 1234567891011121314151617181920212223242526272829303132#include using namespace std; int sansaXor(vector arr) { // Complete this function int res = 0; if(!(arr.size() % 2)) return 0; else{ for(int i = 0; i > t; for(int a0 = 0; a0 > n; vector arr(n); for(int arr_i = 0; arr_i > arr[arr_i]; } int result = sansaXor(arr); cout
Study/PS(Algorithm)
2018. 3. 22. 16:56