출처 : https://www.hackerrank.com/challenges/diagonal-difference/problem #include using namespace std; int diagonalDifference(vector arr) { int ans1=0; int ans2=0; int s = arr.size(); for(int i=0,j=0; i>=0 && i> n; cin.ignore(numeric_limits::max(), '\n'); vector arr(n); for (int i = 0; i > arr[i][j]; } cin.ignore(numeric_limits::max(..
출처 : https://www.hackerrank.com/challenges/a-very-big-sum/problem #include using namespace std; vector split_string(string); long aVeryBigSum(vector ar) { long ans=0; for(int i=0; i> ar_count; cin.ignore(numeric_limits::max(), '\n'); string ar_temp_temp; getline(cin, ar_temp_temp); vector ar_temp = split_string(ar_temp_temp); vector ar(ar_count); for (int i = 0; i < ar_count; i++) { long ar_item..
출처 : https://www.hackerrank.com/challenges/compare-the-triplets/problem #include using namespace std; string ltrim(const string &);string rtrim(const string &);vector split(const string &); vector compareTriplets(vector a, vector b) { vector v(2); for(int i=0; ib[i]) v[0]++; else if(a[i]
출처 : https://www.hackerrank.com/challenges/solve-me-first/problem #include #include #include #include #include using namespace std; int solveMeFirst(int a, int b) { return a+b;} int main() { int num1, num2; int sum; cin>>num1>>num2; sum = solveMeFirst(num1,num2); cout
SW Expert Academy :: SWEA :: 5658 :: 보물상자 비밀번호 출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRUN9KfZ8DFAUo&categoryId=AWXRUN9KfZ8DFAUo&categoryType=CODE #include #include #include #include #include using namespace std; int N, K;string s; int main() {int T; cin >> T;for (int tc = 1; tc > N >> K;vectorv; int ans = 0;cin >> s; int tmp; for (int i = 0; i < ..
SW Expert Academy :: SWEA :: 5644 :: 무선 충전 출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRDL1aeugDFAUo #include #include #include #include using namespace std; struct BC {int x, y, c, p, n;}; int M, N, ans;int user[2][101];int dir[5][2] = { {0,0},{0,-1},{1,0},{0,1},{-1,0} };vector map; inline bool check(int x, int y, BC bc) { return bc.c >= ((abs(bc.x-x..
SW Expert Academy :: SWEA :: 5648 :: 원자 소멸 시뮬레이션 출처 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWXRFInKex8DFAUo&categoryId=AWXRFInKex8DFAUo&categoryType=CODE #include #include #include using namespace std; struct atom { int n, i, j, d, e; float c;}; int N, ans;vector v;vector ev; inline void check(atom n1, atom n2) {if (n1.d == 0) {if (n2.d == 1 && n1.j ==..
- Total
- Today
- Yesterday
- 미세먼지 안녕!
- hackerrank
- 연구소 3
- 17837
- 17142
- 팁
- 시간 복잡도
- 17144
- 알고리즘
- 새로운 게임 2
- 17143
- DP
- 트렌드
- DFS
- string
- 입출력
- 2018 KAKAO BLIND RECRUITMENT
- 2018 카카오 블라인드 채용
- 역량 테스트
- scanf
- 게리맨더링 2
- SW Expert Academy
- SWEA
- STL
- 이차원 배열과 연산
- 삼성
- 백준
- boj
- 17779
- 17140
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |