Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Here is the problem [UVA-1124](https://vjudge.net/problem/UVA-1124) #

The problem is straightforward: we need to read the input and print it exactly as it is. There are no modifications, no calculations, and no transformations needed.

At first, the problem might seem tricky, making you think some processing is required, but in reality, it is just a simple input-output task.

# To solve this problem efficiently #

* Use getline(cin, line) to read the entire input line, ensuring spaces are preserved.

* Directly print the input using cout, followed by a newline (\n) to maintain formatting.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <iostream>
#include <string>
using namespace std;
int main() {
string x;

while (getline(cin, x)) {
cout << x << "\n";
}
return 0;
}