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

설정

트랙백

댓글