블로그
-
스택/큐 기능개발 파이썬
progresses, speeds): answer = [] time=[] for i, j in zip(progresses, speeds):#소요시간저장 time.append(math.ceil((100 -i)/j)) max_time=time[0] cnt=1 for i in range(1,len(time)):#소요시간 확인 if max_time < time[i]:#현재 소요시간
blog.naver.com · 2021.05.10
-
Bike riding around Seoul (Hill climbing course)
You should note that this rout is not 100% bike trail. If you are a bike ride.......
blog.naver.com · 2020.08.05
-
[안드로이드] ArrayList 정렬하기
ArrayList(); //데이터 추가 sortList.add(10); sortList.add(30); sortList.add(40); sortList.add(1); sortList.add(100 ); //정렬 //비교값이 크면 1을 리턴 //비교값이 작으면 -1을 리턴 //비교값이 같으면 0을 리턴 //0을 리턴할때 까지 정렬을 진행함. if (sortList.size()
blog.naver.com · 2020.04.13
-
Friends Season 1 Episode 9. The One Where Underdog Gets Away - 프렌즈 시즌1-9 대사,대본
I know that I haven't worked here very long, but I was wondering, do you think it would be possible if I got a $100 advance in my salary?
blog.naver.com · 2020.05.29
-
[C/C++]백준 11047: 동전 0
for문을 역으로 돌립니다.) 123456789101112131415161718192021222324// coins[] = { 50000, 10000, 5000, 1000, 500, 100 가치 배열의 위치// curMoney = 현재의 돈(초기 값은 k) for (int i = curPoint; i < n; i++){ // 동전 가치가 현재의 돈보다 적을 때 if
blog.naver.com · 2018.09.27
-
18.09.16
Color c = new Color(color_R, color_G, color_B); g.setColor(Color.WHITE); //주사위 바탕 g.fillRect(x, y, 100 , 100); g.setColor(Color.BLACK); //주사위 점 if(count==1) g.fillO.......
blog.naver.com · 2018.09.16
-
구조체 배열 스택 프로그램
#define _CRT_SECURE_NO_WARNINGS #include #include #include #define MAX_STACK_SEIZ 100 #define MAX_STRING 100 typedef struct { int student_no; char name[MAX_STRING]; char address[MAX_STRING]; }element; element
blog.naver.com · 2018.08.02
-
public class ArrayList
list.arraylist.implementation; public class ArrayList { private int size = 0; private Object[] elementData = new Object[100 public String toString() { String str = "["; for(int i = 0; i < size; i++) { str += elementData[i]; if
blog.naver.com · 2018.09.17
-
정수 배열 스택 프로그램
#include #include #define MAX_STACK_SEIZ 100 typedef int element; element stack[MAX_STACK_SEIZ]; int return (top == -1); } int is_full() { return (top == (MAX_STACK_SEIZ - 1)); } void push(element item) { if
blog.naver.com · 2018.08.02
-
자료구조 스택 활용 미로탐색 프로그램
#include #include #define MAX_STACK_SIZE 100 #define MAX_SEIZE 6 typedef struct { int r; int c; }element } int is_empty(StackType *s) { return (s->top == -1); } void push(StackType *s, element data) { if
blog.naver.com · 2018.08.12