← Back to List

4470번: 줄번호 ↗

Solutions

C++14
227 B | 227 chars
#include <iostream>
#include <string>
using namespace std;
int N;
string ar[110000];
int main()
{
	cin>>N;
	getline(cin,ar[0]);
	for(int x=0; x<N; x++) getline(cin,ar[x]);
	for(int x=0; x<N; x++) cout<<x+1<<". "<<ar[x]<<"\n";
}