반응형
백준 15680번 연세대학교 풀이 코드
C | C++ | Java | Python
풀이
입력값이 0이면 '연세대학교', 1이면 'Leading the Way to the Future'를 출력합니다.
코드
#include<stdio.h>
int main(){
int N;
scanf("%d", &N);
if (N == 1)
printf("Leading the Way to the Future");
else
printf("YONSEI");
return 0;
}
#include<iostream>
using namespace std;
int main(){
int N;
cin>>N;
if(N == 1)
cout<<"Leading the Way to the Future"<<endl;
else
cout<<"YONSEI"<<endl;
return 0;
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N;
N = sc.nextInt();
if( N == 1 )
System.out.println("Leading the Way to the Future");
else
System.out.println("YONSEI");
}
}
N = int(input())
if N == 1:
print("Leading the Way to the Future")
else:
print("YONSEI")
문제 출처
반응형
'Coding > BAEKJOON' 카테고리의 다른 글
[백준] 15963번 CASIO 풀이 코드 (C/C++/Java 자바/Python 파이썬) (0) | 2021.12.03 |
---|---|
[백준] 11943번 파일 옮기기 풀이 코드 (C/C++/Java 자바/Python 파이썬) (0) | 2021.12.02 |
[백준] 10707번 수도요금 풀이 코드 (C/C++/Java 자바/Python 파이썬) (0) | 2021.11.29 |
[백준] 5596번 시험 점수 풀이 코드 (C/C++/Java 자바/Python 파이썬) (0) | 2021.11.28 |
[백준] 10101번 삼각형 외우기 풀이 코드 (C/C++/Java 자바/Python 파이썬) (0) | 2021.11.27 |