This file contains hidden or 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.util.*; | |
public class Main{ | |
public static void main(String args[]){ | |
Scanner sc = new Scanner(System.in); | |
System.out.println(sc.nextInt() + sc.nextInt()); // ์ ๋ ฅ๋ฐ์ ๋ณ์๋ฅผ ์ ์ฅ์์ด ๋ฐ๋ก ์ถ๋ ฅ | |
} | |
} |
This file contains hidden or 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
a=input().split() | |
print(int(a[0])+int(a[1])) |
This file contains hidden or 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.StringTokenizer; | |
public class Main { | |
public static void main(String args[]) throws IOException { | |
// readline ์ ์ฌ์ฉํ๋ ค๋ฉด ์์ธ์ฒ๋ฆฌ๊ฐ ํ์ํ๋ค. | |
// BufferedReader๊ฐ Scanner ๋ณด๋ค ์ ๋ ฅ ๋ฐ๋๊ฒ ๋น ๋ฅด๋ค. ms ๋จ์์์... | |
// ์๊ณ ๋ฆฌ์ฆ ๋ฌธ์ ์์ ์คํ์๊ฐ ์ค์ด๊ธฐ ์ํด ๋ง์ด ์ฐ๋ ๋ฐฉ๋ฒ์ด๋ค. |
This file contains hidden or 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
using System; | |
namespace C_sharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string[] str = Console.ReadLine().Split(); | |
Console.WriteLine(int.Parse(str[0]) + int.Parse(str[1])); |
This file contains hidden or 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
var fs = require('fs'); | |
var input = fs.readFileSync('/dev/stdin').toString().split(' '); | |
// window OS - C:\dev\stdin ํ์ผ์ ๋ง๋ค๊ณ ์ ๋ ฅ ๊ฐ์ ๋ฏธ๋ฆฌ ์ ์ฅํด์ผํจ... | |
console.log(Number(input[0]) + Number(input[1])); |
This file contains hidden or 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
#define _CRT_SECURE_NO_WARNINGS // scanf ๋ณด์ ๊ฒฝ๊ณ ๋ก ์ธํ ์ปดํ์ผ ์๋ฌ ๋ฐฉ์ง | |
#include <stdio.h> | |
int main() | |
{ | |
int N = 0; | |
scanf("%d", &N); // 1์ด์ 100์ดํ์ ๊ฐ์ ์ ๋ ฅ | |
for (int i = 0; i < N; i++) | |
{ |
This file contains hidden or 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> | |
#include <string> | |
using namespace std; | |
int main() | |
{ | |
int N = 0; | |
cin >> N; | |
for (int i = 0; i < N; i++) | |
{ |
This file contains hidden or 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.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class Main{ | |
public static void main(String args[]) throws NumberFormatException, IOException{ | |
BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); | |
final int N = Integer.parseInt(br.readLine()); | |
StringBuilder sb = new StringBuilder(); |
This file contains hidden or 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
N=int(input()) | |
str = '' | |
for i in range(0, N): | |
for j in range(0, N): | |
if i > j: | |
str+=" " | |
else: | |
str += "*" | |
str += "\n" | |
print(str) |
This file contains hidden or 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
using System; | |
using System.Text; | |
namespace C_sharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int N = int.Parse(Console.ReadLine()); |