본문 바로가기

반응형

전체 글

(141)
근거 없는 자신감에 대한 이야기 근거 없는 자신감 근거 없는 자신감, 보통 줄여서 근자감이라고도 부르기도 한다. 말 그대로 근거 없는 자신감으로, 근거 없는 자신감을 가진 당사자는 자신감이 넘치는데, 정작 그 당사자에겐 그럴만한 이유가 없는 경우이다. 예를 들어 뭐.. 시험공부를 안하고 시험을 보는데 자신감이 넘친다던지 하는 것들이 근자감이라 볼 수 있다. 그럼 갑자기 이 이야기를 왜 꺼냈을까 이 근자감이 나 자신에게서 많이 보인다고 생각된다. 물론 내가 미쳐가지고 모든 것에 근자감을 가지는 것은 아니다. 하지만 공부에 있어서 근자감이 좀 있는 것 같다. 내 현재 내신성적은 내가 목표하는 대학에 가기에는 좀 부족하다.(목표대학이 남들만큼 높진 않다.) 하지만 이 상황을 누구보다 잘 알지만 공부를 더 열심히 하려하지 않는다. 공부를 안하..
백준 1987번: 알파벳 C++코드(DFS, Backtracking, 백트래킹) #include #include using namespace std; int alphabet[26] = {0,}; char graph[21][21] = {0,}; int r,c; int result = 0; int y[4] = {0,0,-1,1}; int x[4] = {-1,1,0,0}; void dfs(int ny, int nx, int cnt){ if(result c; for(int i=0; i graph[i][j]; } } alphabet[graph[0][0]-65] = 1; dfs(0,0,1); cout
백준 16953번: A -> B C++ 코드(BFS) #include #include #include using namespace std; int bfs(long long a, long long b){ queue q; q.push(make_pair(a, 1)); while(!q.empty()){ pair now = q.front(); q.pop(); if(now.first == b){ return now.second; } if(now.first*2 a >> b; cout
백준 1926번: 그림 C++코드(BFS) #include #include #include #include #include using namespace std; int n,m; int picture[501][501]; int visit[501][501] = {0,}; int x[4] = {0,0,1,-1}; int y[4] = {1,-1,0,0}; int bfs(int s1, int s2){ int funcnt = 0; queue q; q.push(make_pair(s1,s2)); while(!q.empty()){ funcnt += 1; pair now = q.front(); q.pop(); for(int i=0; i> m; vector v; v.push_back(0); for(int i=0; i picture[i][j]; } } for(int ..
백준 2193번: 이친구 C++코드(DP, 다이나믹 프로그래밍) #include using namespace std; long long arr[100] = {0,}; long long dp(int n){ if(n n; arr[1] = 1; arr[2] = 1; cout
백준 1181번: 단어 정렬 C++코드(정렬) #include #include #include #include #include using namespace std; bool cmp(const string & a, const string & b){ if(a.length() < b.length()) return true; else if(a.length() == b.length()){ if(a < b) return true; } return false; } int main(){ int n; char temp[51]; vector words; scanf("%d", &n); for(int i=0; i
백준 3046번: R2 C언어 코드(구현, 사칙연산) #include int main(){ int r1, s; scanf("%d %d", &r1, &s); printf("%d", s+(s-r1)); } 설명 S가 평균이므로 S에 S와 R1의 차이만큼 더해주면 R2가 나온다. 문제점 없다.
백준 1932번: 정수 삼각형 C++코드(DP, 다이나믹 프로그래밍) #include #include using namespace std; int arr[501][501]; int cost[501][501] = {0,}; int n; void dp(){ for(int i=0; i

반응형