이모저모 블로그

           
  • 홈
  • 태그
  • 방명록
  • 분류 전체보기 (26)
    • 프로그래밍 이모저모 (22)
      • 프로그래밍 (22)
      • 기타 (0)
    • 게임 이모저모 (0)
    • 생각 이모저모 (2)
    • 여행 이모저모 (0)
백준 1085 - 직사각형에서 탈출

프로그래밍 이모저모/프로그래밍2019. 8. 5. 23:09

#include using namespace std; int main() { int x, y, w, h; cin >> x >> y >> w >> h; int min = 1001; if (w - x < min) min = w - x; if (h - y < min) min = h - y; if (y < min) min = y; if (x < min) min = x; cout

백준 1427 - 소트인사이드

프로그래밍 이모저모/프로그래밍2019. 8. 5. 22:53

#include #include #include using namespace std; int main() { string input; cin >> input; sort(input.begin(),input.end()); reverse(input.begin(), input.end()); cout

백준 1026 - 보물

프로그래밍 이모저모/프로그래밍2019. 8. 5. 22:09

#include using namespace std; int main() { int A[50]; int B[50]; bool C[50] = { false }; int N; cin >> N; for (int i = 0; i > A[i]; } for (int i = 0; i > B[i]; } for (int i = 0; i max && C[j] == false) { max = B[j]; maxindex = j; } if (A[j] <..

백준 문제 1193 - 분수찾기

프로그래밍 이모저모/프로그래밍2019. 8. 2. 21:44

#include using namespace std; int main() { int N; cin >> N; int sub = 1; bool lr = true; while (N - sub > 0) { N -= sub++; lr = !lr; } int res1, res2; if (lr == true) { res1 = sub - N + 1; res2 = N; } else { res1 = N; res2 = sub - N + 1; } cout

백준 문제 1932 - 정수 삼각형

프로그래밍 이모저모/프로그래밍2019. 8. 2. 20:57

#include using namespace std; int main() { int N; int inp; int Arr[200000]; int pos = 2; int max = 0; cin >> N; cin >> Arr[1]; for (int i = 2; i inp; if (j == 1) { Arr[pos] = Arr[pos - (i - 1)] + inp; } else if (j == i) { Arr[pos] = Arr[pos - i] + inp; } else { if (Arr[pos - (i - 1)] > Arr[pos - i]) Arr[pos] = Arr[pos - (i - 1)] + inp; else Arr[pos] = Arr[pos - i] + inp; } if (max < Arr[pos]) ma..

백준 문제 2010 - 플러그

프로그래밍 이모저모/프로그래밍2019. 8. 2. 19:30

#include using namespace std; int main() { int TC; cin >> TC; int acc = 0; for (int i = 0; i > num; acc = acc + num - 1; } acc++; cout

백준 문제 2167 - 2차원 배열의 합

프로그래밍 이모저모/프로그래밍2019. 8. 2. 19:21

@마크다운 #include using namespace std; int main() { int i, j; int arr[300][300]; cin >> i >> j; for (int a = 0; a > arr[a][b]; } } int x, y,k; cin >> k; for (int c = 0; c > i >> j >> x >> y; i--; j--; x--; y--; int acc = 0; for (int a = i; a

D3.js를 다뤄보자

프로그래밍 이모저모/프로그래밍2018. 12. 23. 19:51

HTML과 CSS, Javascript에 대해서 기본적으로 알고 있다고 가정하겠다. 일단 Node.js의 Express를 통해 localhost 웹 서버를 개설한다. 쉽게말해 Node.js를 통해 내 PC가 웹서버로써 동작할 수 있게 한다는 것. 아직까진 포트를 열어두지 않아 내 컴퓨터에서 내 컴퓨터로만 접근 가능하다.(이에 대해선 좀 더 공부할 예정) D3.js는 Data-Driven Document, D가 3개 들어가서 D3이다. 대용량의 데이터를 시각화 하는데 유리한 Javascript 라이브러리이다. 이를 사용하고 싶다면 cs 를 추가해주자. v5가 가장 최신이고, v3,v4 에 비해 몇 가지 달라진 문법규칙이 있다고 한다. 이는 D3 git에서 API 정보를 참조하자. var dataSet = ..

‹ Prev 1 2 3 4 Next ›

카테고리

  • 분류 전체보기 (26)
    • 프로그래밍 이모저모 (22)
      • 프로그래밍 (22)
      • 기타 (0)
    • 게임 이모저모 (0)
    • 생각 이모저모 (2)
    • 여행 이모저모 (0)

공지사항

최근에 올라온 글

최근에 달린 댓글

«   2025/06   »
일 월 화 수 목 금 토
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

글 보관함

방문자

전체 :

오늘 :

어제 :

  • 홈
  • 태그
  • 방명록

Copyright © 이모저모 블로그 / designed by dev.golrazo.com

티스토리툴바