Algorithm/Implementation (750) 썸네일형 리스트형 (C++) - 백준(BOJ) 9317 : Monitor DPI https://www.acmicpc.net/problem/9317 9317번: Monitor DPI Each input line will have 3 numbers, the decimal value D, the integer value \(\text{Resolution}_{\text{Horizontal}}\), and the integer value \(\text{Resolution}_{\text{Vertical}}\). An input line of three zeroes will signify end of input www.acmicpc.net 간단한 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 d, rh, rv를 선언 후 입력받습니다. 📔 풀이과정 공식에 맞춰 지역변수 w, h를 선언해 값을.. (C++) - 백준(BOJ) 7782 : Alien https://www.acmicpc.net/problem/7782 7782번: Alien Once upon a time after winning another competition at KBTU, Bakhytzhan, Askar and Artem walked throw the Old Square. When they found some interesting rectangle lines on the asphalt, they stopped and screamed out ”R tree”. They screamed so loud that all www.acmicpc.net 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 외계인 함선 수 t, Bakhytzhan의 위치 (b1, b2), 함선의 좌하좌표 (.. (C++) - 백준(BOJ) 11121 : Communication Channels https://www.acmicpc.net/problem/11121 11121번: Communication Channels The first line of the input consists of a single number T, the number of transmissions. Then follow T lines with the input and the output of each transmission as binary strings, separated by a single space. 0 < T ≤ 100 All inputs and outputs has length l www.acmicpc.net 간단 구현문제였습니다. 📕 풀이방법 📔 입력 및 초기화 test case t, 문자열 a, b를 선언 후.. (C++) - 백준(BOJ) 4806 : 줄 세기 https://www.acmicpc.net/problem/4806 4806번: 줄 세기 한 줄에 최대 100글자씩 주어진다. 빈 줄이 주어질 수도 있다. www.acmicpc.net 간단한 입출력 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 문자열 s, 정답 ans를 선언한 후 입력받습니다. 📔 풀이과정 getline함수로 한 줄 단위로 입력받을 수 있습니다. EOF를 만나면 0을 반환하므로 while loop의 조건에 넣을 수 있습니다.매 loop당 ans를 증가시킵니다. 📔 정답출력 ans를 출력합니다. 📕 Code #include using namespace std; string s; int ans; int main(){ while(getline(cin,s)) ans++; cout (C++) - 백준(BOJ) 13496 : The Merchant of Venice https://www.acmicpc.net/problem/13496 13496번: The Merchant of Venice “The Merchant of Venice” has perhaps one of the most interesting “villains” in Shylock, a Jewish moneylender who has been hurt many times and in different ways by Christians in general, and Antonio, the titular merchant, in particular. When Anton www.acmicpc.net 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 test case n, 배 하루당 이동거리 s, 상환일 d, .. (C++) - 백준(BOJ) 3578 : Holes https://www.acmicpc.net/problem/3578 3578번: Holes You may have seen a mechanic typewriter — such devices were widespread just 15 years ago, before computers replaced them. It is a very simple thing. You strike a key on the typewriter keyboard, the corresponding type bar rises, and the metallic letter mo www.acmicpc.net 간단한 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 구멍의 개수 h를 선언 후 입력받습니다. 📔 풀이과정 4개의 경우가 있습니다. .. (C++) - 백준(BOJ) 11257 : IT Passport Examination https://www.acmicpc.net/problem/11257 11257번: IT Passport Examination บรรทัดแรก เป็นจํานวนเต็ม N ระบุจํานวนผู้สอบ และ N บรรทัด ต่อมาเป็นข้อมูลของผู้เข้าสอบแต่ละค www.acmicpc.net 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 test case 수 t, 응시자 번호 testerNum, 각 section a, b, c, 총점 totalScore를 선언한 후 적절히 입력 받습니다. 입력 받은 후 totalScore에 총점값을 저장합니다. 📔 풀이과정 각 section에 30%가 최소 통과 기준이므로 각각 11, 8, 12이상이며 총점이 55점 이상인 사람들이 통.. (C++) - 백준(BOJ) 18198 : Basketball One-on-One https://www.acmicpc.net/problem/18198 18198번: Basketball One-on-One The input consists of a single line with no more than 200 characters: the record of one game. The record consists of single letters (either A or B) alternating with single numbers (either 1 or 2), and includes no spaces or other extraneous characters. Each www.acmicpc.net 간단 구현 문제였습니다. 📕 풀이방법 📔 입력 및 초기화 문자열 s, a점수 b점수 a,b를 선언 후 .. 이전 1 ··· 50 51 52 53 54 55 56 ··· 94 다음