아무거나적어~
-
python3 customized compare function아무거나적어~ 2022. 9. 24. 16:42
https://stackoverflow.com/questions/2531952/how-to-use-a-custom-comparison-function-in-python-3 How to use a custom comparison function in Python 3? In Python 2.x, I could pass custom function to sorted and .sort functions >>> x=['kar','htar','har','ar'] >>> >>> sorted(x) ['ar', 'har', 'htar', 'kar'] >>> &g... stackoverflow.com https://stackoverflow.com/questions/5213033/sort-a-list-of-lists-wit..
-
동아리 등록하신 분 백준 그룹에 등록하기아무거나적어~ 2022. 9. 3. 11:34
항상 느끼는거지만 CTP 회원 너무 많습니다ㅜ 수학과 다 모아놓아도 이정도는 아닐듯... 이에 동아리일을 할 때면 항상 코딩으로 해결하게 되네요.. 오히려 좋아~ 지원 폼으로부터 회비를 납부하여 등록하신분들을 추출해봅시다. 나중에 백준 그룹에 저장하려면 BOJ handle 데이터가 필요합니다 근데 저같은 경우 회비사용내역도 써야하므로 이름-BOJ handle-기존회원여부 꼴의 데이터를 뽑도록 하겠습니다 지원자 파싱 저는 카톡 초대 메세지에서 파싱했습니다! 잘 살펴보면 이름은 '님' 이후에 3글자라는 것을 알 수 있어요 1 2 3 4 5 6 7 8 9 10 11 # -*- coding:utf-8 -*- kakao = """ 황진익님이 ctp 홍길동님, ctp 아무개님을 초대하였습니다. """ member ..
-
백준 문제집 만들기 부분-자동화아무거나적어~ 2022. 8. 22. 18:12
문제 번호 불러오기 알고리즘 기초 1/2 알고리즘 기초 code.plus 요기 있는 문제들을 풀고 있는데 어떤 문제를 풀었는지 표시가 안돼서 불편해요 그래서 요기있는 문제들을 백준의 문제집 만들기 기능을 이용해서 문제집으로 만들어볼까 합니다 그러려면 요기 있는 문제들의 번호를 알아야 합니다. 일일이 들어가서 체크하기 귀찮으니 이를 자동화해 봅시다 What is my user agent? Every request your web browser makes includes your User Agent; find out what your browser is sending and what this identifies your system as. www.whatismybrowser.com 아래 코드의 8번째 줄 I..
-
Markdown with LaTex아무거나적어~ 2022. 7. 15. 19:09
How to install pandoc ubuntu package on Ubuntu 20.04/Ubuntu 18.04/Ubuntu 19.04/Ubuntu 16.04 Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) HTML, reStructuredText, LaTeX, DocBook, MediaWiki markup, Haddock markup, OPML, Emacs Org-mo zoomadmin.com How can I mix LaTeX in with Markdow..
-
cmp 함수 결과아무거나적어~ 2022. 7. 7. 14:41
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 #include #define endl "\n" // don't use when you cover interactive problem #define all(v) (v).begin(), (v).end() using namespace std; typedef long long ll; typedef pair pi; typedef pair pl; int main() { ios::sync_with_stdio(false); cin.tie(0), cout.tie(0); priority_queue pq; pq.push(1); pq.push(2); pq.push(3); cout
-
-
[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..