Skip to content

Instantly share code, notes, and snippets.

View keehyun2's full-sized avatar
๐Ÿ˜ช
zzzz

Keehyun Park keehyun2

๐Ÿ˜ช
zzzz
View GitHub Profile
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()); // ์ž…๋ ฅ๋ฐ›์€ ๋ณ€์ˆ˜๋ฅผ ์ €์žฅ์—†์ด ๋ฐ”๋กœ ์ถœ๋ ฅ
}
}
a=input().split()
print(int(a[0])+int(a[1]))
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 ๋‹จ์œ„์—์„œ...
// ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ฌธ์ œ์—์„œ ์‹คํ–‰์‹œ๊ฐ„ ์ค„์ด๊ธฐ ์œ„ํ•ด ๋งŽ์ด ์“ฐ๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค.
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]));
@keehyun2
keehyun2 / add.js
Last active January 18, 2018 09:46
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]));
@keehyun2
keehyun2 / loop.c
Last active January 18, 2018 10:04
#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++)
{
#include <iostream>
#include <string>
using namespace std;
int main()
{
int N = 0;
cin >> N;
for (int i = 0; i < N; i++)
{
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();
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)
using System;
using System.Text;
namespace C_sharp
{
class Program
{
static void Main(string[] args)
{
int N = int.Parse(Console.ReadLine());