YJ/C++
[백준/BOJ/C++] 9316번 Hello Judge
Team DAON
2021. 10. 18. 16:39
[문제]
당신은 N개의 테스트케이스들에게 반드시 인사를 해야 이 문제를 풀 수 있다.
N개의 줄에 걸쳐
"Hello World, Judge i!"
를 출력하는 프로그램을 만들라. 여기서 i는 줄의 번호이다.
[입력]
N이 주어진다. (1 ≤ N ≤ 200)
[출력]
한 줄에 하나의 Hello World, Judge i! 를 출력한다.
[Source Code]
#include <stdio.h>
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n;
cin >> n;
for(int i = 1; i <= n; i++)
cout << "Hello World, Judge " << i <<"!\n";
}
[결과 화면]