#include #include using namespace std; int main(){ int n, sum, digit; cin >> n; for(int i=1; i
[백준 19532] 수학은 비대면강의입니다
·
스터디/알고리즘
#include #include using namespace std; int main() { vector N(6); for(int i = 0; i> N[i]; for(int x = -1000; x
[백준 1713] 후보 추천하기
·
스터디/알고리즘
#include #include #include using namespace std; #define MAX 101 int n, m; int recommend[MAX]; int main(){ cin >> n >> m; vector students(n); for (int i = 0; i > pick; recommend[pick]++; bool check = true; for (int j = 0; j < n; j++){ if (students[j].second == 0){ students[j].second = pick; students[j].first = i; check = false; break; } else if (students[j].second == pic..
[백준 5597] 과제 안 내신 분...?
·
스터디/알고리즘
#include #include using namespace std; int main(){ int students[31]={0}; int n; for(int i=1; i> n; students[n]=1; } for(int i=1; i
[백준 5212] 지구 온난화
·
스터디/알고리즘
처음 시도한 풀이: 실패 #include #define MAX 10 using namespace std; int main(){ int R, C; cin >> R >> C; char map[MAX][MAX]={0}; char update_map[MAX][MAX]={0}; for(int i=1; i map[i][j]; } } int count = 0; for(int i=1; i
[2021-2] 운영체제 프로젝트
·
학교
과제 제목 : 윈도우 운영체제에서 파일의 내용을 버퍼로 읽어들이고, 버퍼로 읽어들인 파일의 내용을 20%이상 수정한후, 새로운 파일로 저장하는 기능에 대해서 프로그램한다. O 개발에 사용할 프로그램 언어 : C프로그램(C++, C# 포함), Java, Python 언어중 하나로 작성 O 팀 구성 방법 : 개인별로 term project를 수행합니다. O 제출일시 : 2021.11.12.(금), 23:00까지 O 과제 제출 방법 : 과제수행 후 최종보고서 파일(파일이름:“학번_홍길동.hwp”)과 최종 개발 소스코드(파일이름:“학번_홍길동.zip”)를 제출해야 합니다. 제출은 DOOR시스템(교수 학습지원 시스템) 운영체제 교과목 과제제출 게시판으로 제출함. O 리포트 작성 형식은 아래와 같습니다. cover..
[백준 2164] 카드2
·
스터디/알고리즘
#include #include using namespace std; int main(){ int n; queueq; cin >> n; for(int i=1; i 1){ q.pop(); q.push(q.front()); q.pop(); } cout
[백준 22864] 피로도
·
스터디/알고리즘
#include using namespace std; int main(){ int A, B, C, M; int fatigue = 0, time = 0, work = 0, rest = 0, burnout = 0; cin >> A >> B >> C >> M; rest = C; burnout = M; if(A > M){ cout