전체 글
-
[c++] Reference vs Pointer아무거나적어~ 2022. 6. 27. 17:57
A pointer can be re-assigned any number of times while a reference cannot be re-assigned after binding. Pointers can point nowhere (NULL), whereas a reference always refers to an object. You can't take the address of a reference like you can with pointers. There's no "reference arithmetic" (but you can take the address of an object pointed by a reference and do pointer arithmetic on it as in &ob..
-
1651-C코드포스 2022. 3. 15. 15:05
Problem - C - Codeforces codeforces.com 모든 경우를 세세히 따지지 않아서 틀렸다 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 #include #define endl "\n" // don't use when you cover interactive problem #define ooop(i, n) for(int i = 0; i t; while(t--){ int n; cin >> n; vector v(2, vector(n)); ooop(i, n) cin >> v[0][i]; ..
-
백준 그룹 초대 자동화 코드아무거나적어~ 2022. 3. 13. 15:51
1 2 3 4 5 6 7 8 const array = ['1', '2'] array.forEach(function (item, index) { document.querySelector("input[id=user-search]").value = item var e = jQuery.Event("keypress"); e.which = 13; //choose the one you want e.keyCode = 13; $("#user-search").trigger(e); });cs
-
9370, 삐빅-- 메모리 초괍니다(다익스트라로 최단경로 tree)백준 2022. 2. 4. 14:43
9370번: 미확인 도착지 (취익)B100 요원, 요란한 옷차림을 한 서커스 예술가 한 쌍이 한 도시의 거리들을 이동하고 있다. 너의 임무는 그들이 어디로 가고 있는지 알아내는 것이다. 우리가 알아낸 것은 그들이 s지점에서 www.acmicpc.net 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89..
-
-
바다사자, 파이참 단축키(clion, pycharm shortcut, vscode ver.)아무거나적어~ 2022. 1. 29. 01:06
alt + F12 : 함수 설명 ctrl + 클릭 : 함수 정의부분으로 쓱 감 (main 함수 내부 클릭 후)ctrl + shift + F10 : 현재 파일 실행 ctrl + shift + L : 변수 한꺼번에 바꾸기 alt + ↑: 줄 이동 alt + shift + ↓: 줄 복사 ctrl + D : send EOF(end of file), 이건 단축키로 따로 지정해줘야 한다 ctrl + shift + L : 같은 글자앞에 모두 커서생김