Skip to content

Using c++ and python solvled baekjoon Algorithm and Practice Codeing test

Notifications You must be signed in to change notification settings

younghoonNa/Algorithm

Repository files navigation

Cpp_source

주로 백준 문제를 풀며 알아가는 내용을 업데이트 합니다.

Solved.ac Profile

티스토리 에도 종종 올라가요.


ios_base::sync_with_stdio(false);
cin.tie(NULL);


cin >> hex >> result; -> 백준 1550번 문제를 풀면서 알게 되었는데 cin >> hex >> result
      를 붙이게 되면 자동으로 16진수로 입력하였지만 result에는 10진수가 들어가게 된다.

c++에서 날짜 표시하기
time_t current_time = time(NULL); //time_t는 long time의 자료형
struct tm *time = localtime(¤t_time);
여기서 time->tm_year +1900 , time->tm_mon+1 , time->tm_mday 와 같은 형식으로 활용

#include <"sstream"> 쓰는법
-> 문자열 하나 받아서 공백 단위로 쪼갤 때 사용.
stringstream orgNum(str);
orgNum >> t >> a >> b >> c;


C++ 자료형

About

Using c++ and python solvled baekjoon Algorithm and Practice Codeing test

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published