Created
May 20, 2018 06:06
-
-
Save BrendenHJH/429b75c811d3137b46c6d5723f0bdc94 to your computer and use it in GitHub Desktop.
백준 2935 소음
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
import java.math.BigInteger; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
BigInteger n = new BigInteger(sc.nextLine()); | |
char c = sc.nextLine().charAt(0); | |
BigInteger m = new BigInteger(sc.nextLine()); | |
if(c == '*') | |
System.out.println(n.multiply(m)); | |
else | |
System.out.println(n.add(m)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment