![[백준 / BOJ] 10998번 AxB (C++, Python)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FeGFREj%2FbtrLaVsjaQk%2FZ4DRnaN47hAIq0OPhg6j8K%2Fimg.jpg)
[백준 / BOJ] 10998번 AxB (C++, Python)◎ 자료구조와 알고리즘/백준(BOJ) 문제풀이2022. 9. 1. 18:51
반응형
링크 : https://www.acmicpc.net/problem/10998
10998번: A×B
두 정수 A와 B를 입력받은 다음, A×B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
문제

문제 풀이
간단한 연산 문제다. 파이썬을 사용하는 사람들은 아래 링크를 참고하면 좋을 것 같다. map(int, input().split())에 대한 설명을 써두었다.
https://reo91004.tistory.com/198
[백준 / BOJ] 1000번 A+B (C++, Python) (부제 : map(int, input().split())에 대하여)
링크 : https://www.acmicpc.net/problem/1000 1000번: A+B 두 정수 A와 B를 입력받은 다음, A+B를 출력하는 프로그램을 작성하시오. www.acmicpc.net 문제 문제 풀이 간단한 연산자 문제다. C++ 상세 풀이 더..
reo91004.tistory.com
코드 전문
C++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
void init() { | |
std::ios_base::sync_with_stdio(false); | |
std::cin.tie(nullptr); | |
std::cout.tie(nullptr); | |
} | |
int main() { | |
init(); | |
int A, B; | |
std::cin >> A >> B; | |
std::cout << A * B; | |
return 0; | |
} |
Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == "__main__": | |
A, B = map(int, input().split()) | |
print(A * B) |
소감
반응형
'◎ 자료구조와 알고리즘 > 백준(BOJ) 문제풀이' 카테고리의 다른 글
[백준 / BOJ] 10869번 사칙연산 (C++, Python) (0) | 2022.09.01 |
---|---|
[백준 / BOJ] 1008번 A/B (C++, Python) (1) | 2022.09.01 |
[백준 / BOJ] 1001번 A-B (C++, Python) (0) | 2022.09.01 |
[백준 / BOJ] 1000번 A+B (C++, Python) (부제 : map(int, input().split())에 대하여) (0) | 2022.08.31 |
[백준 / BOJ] 10718번 We love kriii (C++, Python) (0) | 2022.08.30 |
@Reo :: 코드 아카이브
자기계발 블로그