글
백준 11382번 꼬마 정민 C#(JAVA)
백준 프로그래밍
2023. 2. 28. 00:45
728x90
SMALL
C#
using System;
namespace Baekjoon {
class Program {
static void Main() {
string s = Console.ReadLine();
string[] ss = s.Split(' ');
long a = long.Parse(ss[0]);
long b = long.Parse(ss[1]);
long c = long.Parse(ss[2]);
Console.WriteLine(a + b + c);
}
}
}
////////////////////
자바
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
long a, b,c;
a = sc.nextLong();
b = sc.nextLong();
c = sc.nextLong();
System.out.println(a + b + c);
}
}
728x90
'백준 프로그래밍' 카테고리의 다른 글
백준 10810번 공 넣기 C#(JAVA) (0) | 2023.02.28 |
---|---|
백준 25314번 코딩은 체육과목 입니다 C#(JAVA) (0) | 2023.02.28 |
백준 11720번 숫자의 합(JAVA, C#) (0) | 2023.02.20 |
백준 11654번 아스키코드 ASCII(JAVA, C#) (0) | 2023.02.20 |
백준 4673번 셀프 넘버(JAVA, C#) (0) | 2023.02.20 |