일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- Backjoon
- vitis
- 정보처리기사
- Zynq
- HDLBits
- baekjoon
- FPGA
- chip2chip
- 정처기
- linux
- 실기
- SQL
- 리눅스
- UNIX
- C++
- Beakjoon
- 자격증
- verilog
- boj
- Bus
- Vivado
- hdl
- 백준
- java
- AMBA BUS
- 코딩테스트
- axi
- verilog HDL
- Xilinx
- amba
- Today
- Total
목록분류 전체보기 (129)
Hueestory

#include #include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); vector> num(9); int max = 0; int index = 0; for (int i = 0; i > num[i].first; for (int i = 0; i max) { max = num[i].first; index = i; } cout 1. pair vector 생성 후 vector의 first부분에 9개의 자연수를 받음2. max의 초기값을 0으로 설정 후 자연수와 비교해 max값을 찾아내고, 해당 max값의 index를 찾아냄3. max값과 index + 1값 출력

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); cout 1. 여러 방법이 있지만, iostream의 출력 방식 cout을 사용

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int A[5]; for (int i = 0; i > A[i]; int num = 0; for (int i = 0; i 1. 5개의 숫자를 받는다2. 모든 수를 제곱하여 더한 값을 10으로 나눈 나머지를 출력

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; for (int i = 1; i 0; j--) cout 1. N개의 줄 만큼 실행하기 위한 for문 안에 공백을 출력하기 위한 for문과 별을 출력하기 위한 for문 작성

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int n; cin >> n; for (int i = 1; i 1. 이중 for문을 사용해 별 출력

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int A; cin >> A; int B; cin >> B; if (A > B) cout "

#include #include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); string str; getline(cin, str); int result = 1; for (int i = 0; i 1. 공백이 등장하면 단어의 개수 +1 if (str[0] == ' ') result--;if (str[str.length() - 1] == ' ') result--; 2. 문자열의 첫 부분과 마지막 부분이 공백이면 result값 -1, 위 부분을 빼먹어서 틀렸던 문제

#include #include using namespace std;int main(){ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); double A; cin >> A; double B; cin >> B; cout.precision(9); cout 1. 출력값의 절대오차 또는 상대오차가 10^-9 이하여야 한다=> 소수점 아래 9번째 이하까지 정확한 연산이 되어야 하며, 연산한 값이 소수점 9번째 자리까지 출력되어야 함