heydoy / bojalgorithm Goto Github PK
View Code? Open in Web Editor NEW백준, 프로그래머스 알고리즘 풀이입니다.
백준, 프로그래머스 알고리즘 풀이입니다.
// $0 < $1, 오름차순 정렬
var a = A.sorted(by: <)
// $0 > $1, 내림차순 정렬
var b = B.sorted(by: >)
ios_base::sync_with_stdio(false); // 0또는 false
cin.tie(0); // 0 또는 NULL
cout.tie(0);
c와 c++를 섞어 쓸 경우 입출력 순서가 보장되지 않는다. 순서가 섞이거나 c++ 스크림들의 스레드 안전성이 보장되지 않음.
그러나 c++ 과 c의 표준 스트림 동기화를 끄게 되면 입출력 연산속도를 크게 향상시킬 수 있기 때문에 위 코드를 넣어주는 편이 좋음.
endl
은 개행 뿐 아니라 내부 버퍼도 비우기 때문에 속도가 느림.var value = 100
var result = String(value,radix: 2)
var value = "1100100"
var result = Int(value,radix: 2) // Optional
2진수를 한 번 10진수로 바꾸고 나서 16진수로 변환해야한다.
var value = "11001001"
var intValue : Int = Int(value,radix: 2)!
var result : String = String(result, radix : 16)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.