목록Algorithm/Cases-Study (76)
자이의 프로그래밍
사칙연산
문제 두 자연수 A와 B가 주어진다. 이때, A+B, A-B, A*B, A/B(몫), A%B(나머지)를 출력하는 프로그램을 작성하시오. 입력 두 자연수 A와 B가 주어진다. (1 ≤ A, B ≤ 10,000) 출력 첫째 줄에 A+B, 둘째 줄에 A-B, 셋째 줄에 A*B, 넷째 줄에 A/B, 다섯째 줄에 A%B를 출력한다. 예제 입력 1 7 3 예제 출력 1 10 4 21 2 1 #include using namespace std; int main(){ int a, b; cin>>a>>b; cout
Algorithm/Cases-Study
2020. 4. 29. 13:13
고양이
문제 아래 예제와 같이 고양이를 출력하시오. 입력 없음. 출력 고양이를 출력한다. 예제 입력 1 예제 출력 1 \ /\ ) ( ') ( / ) \(__)| #include using namespace std; int main(){ cout
Algorithm/Cases-Study
2020. 4. 29. 13:10
Hello World
문제 Hello World!를 출력하시오. 입력 없음 출력 Hello World!를 출력하시오. 예제 입력 1 예제 출력 1 Hello World! #include using namespace std; int main(){ cout
Algorithm/Cases-Study
2020. 4. 29. 12:59