//GitHub https://github.com/vellimole0621
vellimole0621 - Overview
vellimole0621 has 4 repositories available. Follow their code on GitHub.
github.com
백준 2338번 : 긴자리 계산
( 문제 - https://www.acmicpc.net/problem/2338)
문제 설명 : 두 정수 A, B를 입력 받음 > 각각 A+B, A-B, A*B의 결과를 출력함
풀이 : X
코드
#백준 2338번 긴자리 계산
# 두 개의 정수의 입력을 받음
A = gets.to_i
B = gets.to_i
# 각 + - * 결과값 출력
puts "#{A+B}"
puts "#{A-B}"
puts "#{A*B}"
'프로그래밍 > Ruby' 카테고리의 다른 글
[루비 Ruby/알고리즘] 백준 2443번 : 별 찍기 - 6 (0) | 2023.02.08 |
---|---|
[루비 Ruby/알고리즘] 백준 10039번 : 평균 점수 (0) | 2023.02.07 |
[루비 Ruby/알고리즘] 백준 2440번 : 별 찍기 - 3 (0) | 2023.02.06 |
[루비 Ruby/알고리즘] 백준 2557번 : Hello World (0) | 2023.02.03 |