SSENI's
search
sseni
말하는 감자에서 자라기
Today
Yesterday
전체 글 (282)
#CUPS(Common UNIX Printing System) - 프린터, 인쇄 요청 및 인쇄 대기열 관리 - IPP(Internet Printing Protocol) 사용 ##CUPS 명령줄 유틸리티 - cancel: 인쇄 요청 취소 - cuspaccept: 명명된 대상에 대한 인쇄 요청의 대기열 기법을 사용으로 설정 - cuspdisable: 명명된 프린터 또는 클래스를 사용 안함으로 설정 - cupsenable: 명명된 프린터 또는 클래스를 사용으로 설정 - cupsreject: 명명된 대상에 대한 인쇄 요청의 대기열 거부 - lp: 인쇄 요청 제출 (/usr/sbin/lpc) - lpadmin: 프린터 또는 클래스 구성 설정 또는 변경 - lpc: CUPS 인쇄 및 클래스 대기열에 대한 제한된 제..
#include #include #include using namespace std; int n, m, h; int map[102][102][102]; int dz[6] = { 0,0,0 ,0,-1,1 }; int dx[6] = { 0,0 ,1,-1,0,0 }; int dy[6] = { -1,1,0,0,0,0 }; int d[102][102][102]; int day = 0; int main() { ios::sync_with_stdio(NULL); cin.tie(0); cin >> m >> n >> h; queue Q; for (int i = 0; i > map[i][..
P. 97 / LP. subscriber 구독자 subsciption 구독 renew 갱신하다 comment 비평 reply to 응답하다 management 경영진 senior accountaut 수석 회계사 suit for ~에 알맞은 accomplishment 업적 stand out 두드러지다 resume 이력서 be qualified for ~에 자격이 있다 an opening(=vancancy) 공석 qualifications for ~에 대한 자격 applicant 지원자, 신청자 candidate 후보자, 지원자 a requirement + of/for ~의 필요조건 highly 매우, 대단히 meet one's needs ~의 욕구를 만족시키다 highly + competent/recomm..
#include #include using namespace std; int m, n, x, y; int g(int a, int b) { if (a % b == 0) return b; else return g(b, a % b); } int l(int a, int b) { return (a * b) / g(a, b); } int main() { ios_base::sync_with_stdio(0); cin.tie(0), cout.tie(0); int t; cin >> t; for (int i = 0; i > m >> n >> x >> y; int maxY = l(m, n); while (1) { if (x > maxY || (x - 1) % n + 1 == y) break; x..
#include #include #include #include #include using namespace std; int arr[30][30]; bool isVisit[30][30]; int dx[4] = { 0,0,1,-1 }; int dy[4] = { -1,1,0,0 }; int n, cnt = 0; vector ans; queue q; int main() { cin >> n; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { scanf_s("%1d", &arr[i][j]); } } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (arr[i][j] == 1 && isVisit..
[The Linux Boot Process] ##BIOS Basic Input/Output System Special Firmware Primary purpose: find and execute the boot loader Performs the POST - Power On Self Test Contains a list of bootable devices. such as Hard disks, DBD drive, USB devices and etc ##Boot Loaders LILO(Linux Loader) - older GRUB(Grand Unified Bootloader) - Replaced LILO ##Initial RAM Disk initrd(initial RAM disk) Temporary fil..
#include #include #include using namespace std; string s[101]; int dis[101][101]; bool isVisit[101][101]; queue Q; int n, m; int dx[4] = { 1,0,-1,0 }; int dy[4] = { 0,1,0,-1 }; int main() { ios::sync_with_stdio(0); cin.tie(0), cout.tie(0); cin >> n >> m; for (int i = 0; i > s[i]; dis[0][0] = 1; Q.push({ 0,0 }); isVisit[0][0] = true; while (!Q.empty()) { pair tmp = Q.front(); Q.pop..
#include #include using namespace std; const int MAX = 64; int n, arr[MAX][MAX]; void f(int n, int x, int y) { if (n == 1) { cout
#include #include #include using namespace std; int map[101][101]; bool chk[101]; int main() { int n, m; cin >> n >> m; int input1; int input2; for (int i = 0; i > input1 >> input2; map[input1][input2] = 1; map[input2][input1] = 1; } queue q; int sum = 0; int result = 999999; int people = 0; for (int i = 1; i
#include using namespace std; int n, k; int arr[11], cnt = 0; int main() { cin >> n >> k; for (int i = 0; i > arr[i]; } for (int i = n - 1; k > 0;) { if (arr[i] > k) i--; if (arr[i]
1. 물리 주소(MAC 주소)로 IP 주소를 찾는 프로토콜 더보기 답: RARP(Reverse Address Resolution Protocol; 역순 주소 결정 프로토콜) 2. IP주소를 MAC주소로 변환하는 프로토콜 : ARP(Address Resolution Protocol) 3. 데이터베이스 설계 절차 데이터베이스 파일의 '저장' 구조 및 접근 경로를 결정하고, 결과로 테이블 정의서, 명세서 작성되는 단계 E-R 다이어그램, 트랜잭션 모델링을 병행적으로 수행하는 단계 테이블을 설계하고 정규화 과정을 거치는 단계 더보기 답: 물리, 개념, 논리 4. 웹 서비스명, 제공 위치, 메시지 포맷, 프로토콜 정보 등 웹 서비스에 대한 상세 정보가 기술된 XML 형식으로 구현되어 있는 언어 더보기 답: WSD..
#include #include using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n, m; cin >> n >> m; string s; cin >> s; int ans = 0; for (int i = 0; i < m; i++) { int k = 0; if (s[i] == 'O') continue; else { while (s[i + 1] == 'O' && s[i + 2] == 'I') { k++; if (k == n) { k--; ans++; } i += 2; } k = 0; } } cout
# 분류 from pyspark.ml.classification import DecisionTreeClassifier from pyspark.ml.evaluation import BinaryClassificationEvaluator from pyspark.ml.feature import StringIndexer from pyspark.ml.feature import VectorAssembler from pyspark.ml.pipeline import Pipeline from pyspark.sql import SparkSession from pyspark.sql import functions spark = SparkSession \ .builder \ .appName("classfication_sample..
n, m = map(int, input().split()) m_list = [] for _ in range(n): m_list.append(input()) n_min = 64 for i in range(n - 7): for j in range(m - 7): cnt1 = 0 cnt2 = 0 for k in range(i, i + 8): for s in range(j, j + 8): if k % 2 == 0 and s % 2 == 0: if m_list[k][s] == 'B': cnt1 += 1 elif k % 2 == 1 and s % 2 == 1: if m_list[k][s] == 'B': cnt1 += 1 elif k % 2 == 0 and s % 2 == 1: if m_list[k][s] == 'W'..
#include using namespace std; int grade[1001][6]; // 애들은 1000명까지, 1~5학년 bool check[1001][1001] = { false, }; int cnt[1001]; int n; int main() { cin >> n; for (int i = 0; i > grade[i][j]; for (int i = 0; i < 5; i++) { for (int j = 0; j < n - 1; j++) { for (int k = j + 1; k < n; k++) { if (grade[j][i] == grade[k][i]) { check[j][k] = check[k][j] = true; } ..
#include using namespace std; int n; int p[2188][2188]; int cnt[3]; // -1,0,1 void f(int x, int y, int size) { bool isSame = true; for (int i = x; i < x + size; i++) { for (int j = y; j < y + size; j++) { if (p[x][y] != p[i][j]) { isSame = false; break; } } } if (isSame) { cnt[p[x][y] + 1]++; return; } for (int i = x; i < x + size; i += size / 3) { for (int j = y; j < y + size; j += size / 3) { ..
# 레이블 : 올바른 출력값 지도 학습 : 입력에 대한 올바른 출력 값과 입력 값을 함께 학습 후 아직 답이 알려지지 않은 새로운 입력 값에 대한 출력 값 찾는 학습 방식 - 레이블을 포함한 데이터 셋 = LabeledPoint 데이터 타입 사용 # 연속형 데이터 / 이산형 데이터 연속 : 무게, 온도, 습도 = 연속적인 값 이산 : 나이, 성별, 개수 = 불연속적인 값 스파크 Mlib 에서 제공하는 API 사용 시 모두 double 타입 데이터만 사용 가능 # 알고리즘, 모델 모델 : 알고리즘의 산출물 (알고리즘 + 데이터) 학습 : 알고리즘에 데이터를 적용하는 과정, 결과물은 모델 (=함수) 스파크 Mlib 에서, 로지스틱 회귀 알고리즘 - LogisticRegression 클래스 (fit에 훈련 데..
# sample_df1, sample_df2, ldf, rdf # sample dataFrame 1 Person = collections.namedtuple('Person', 'name age job') row1 = Person(name="hayoon", age=7, job="student") row2 = Person(name="sunwoo", age=13, job="student") row3 = Person(name="hajoo", age=5, job="kindergartener") row4 = Person(name="jinwoo", age=13, job="student") data = [row1, row2, row3, row4] sample_df = spark.createDataFrame(data) ..
#include #include #include #include using namespace std; int t; int main() { cin >> t; while (t--) { unordered_map m; int n; cin >> n; while (n--) { string clothes, kind; cin >> clothes >> kind; if (m.find(kind) == m.end()) m.insert({ kind, 1 }); else m[kind]++; } int cnt = 1; for (auto i : m) cnt *= (i.second + 1); cout
#include using namespace std; int n; int dp[1000]; int main(){ cin >> n; dp[0] = 1; dp[1] = 1; for(int i = 2; i