Skip to content

한 번에 끝내는 코딩테스트 369 Java편 초격차 패키지 Online. 모의고사 공식 솔루션 입니다.

License

Notifications You must be signed in to change notification settings

tony9402/FastCampus_Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastCampus 모의고사 공식 솔루션

Hits Issue C++ Python Java

문제 풀이

세트 링크 출제자
1 세트 바로 가기 tony9402
2 세트 바로 가기 tony9402
3 세트 바로 가기 tony9402
4 세트 바로 가기 chogahui05
5 세트 바로 가기 tony9402
6 세트 바로 가기 chogahui05
7 세트 바로 가기 tony9402

입력 형식

A+B 예시

  1. C++
소스코드 보기
#include<iostream>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    
    int a, b; cin >> a >> b;
    cout << a + b;

    return 0;
}

  1. Java
소스코드 보기
import java.util.*;
import java.lang.*;
import java.io.*;

public class Main {
    public static void main(String[] args) {
        FastReader rd = new FastReader();

        int a = rd.nextInt();
        int b = rd.nextInt();
        System.out.println(a + b);
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while(st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() { return Integer.parseInt(next()); }
        long nextLong() { return Long.parseLong(next()); }
        double nextDouble() { return Double.parseDouble(next()); }
        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            }
            catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }
}

  1. python
소스코드 보기
import sys

def input():
    return sys.stdin.readline().rstrip()

a, b = map(int, input().split())
print(a + b)

오타 및 오류 제보

Issue로 틀린 부분을 알려주시면 감사하겠습니다.

About

한 번에 끝내는 코딩테스트 369 Java편 초격차 패키지 Online. 모의고사 공식 솔루션 입니다.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published