oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

writelines Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

writelines.html

Desmond failed to claim his Ez-link card from the library after using it to borrow a Project Corner. He also was naughty and failed to cut his hair. As a result, the discipline master made him write lines as punishment.

Desmond, being a programmer, hates writing lines. He likes writing codes more.

The Task

Be Desmond for one day and code the program for him. The program should be able to print 'lines' for Desmond to submit to the library and the discipline master.

Input

The first line of input is one integer, n. (0 < n <= 5000)
The second line is the sentence Desmond has to write repeatedly.
The length of the sentence will be less than or equal to 1000 characters.

Output

Output the second line of input for n times.

Sample Input

5
I will not forget to claim my Ez-link card back again.

Sample Output

I will not forget to claim my Ez-link card back again.
I will not forget to claim my Ez-link card back again.
I will not forget to claim my Ez-link card back again.
I will not forget to claim my Ez-link card back again.
I will not forget to claim my Ez-link card back again.

Hint

Hint: getline

Tags

String Processing

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s32MBAverage
2011s32MBAverage

Judge Compile Command

g++-8 ans.cpp -o writelines -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.