aboutsummaryrefslogtreecommitdiff
path: root/problems/chainwords/attachments/template.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'problems/chainwords/attachments/template.cpp')
-rw-r--r--problems/chainwords/attachments/template.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/problems/chainwords/attachments/template.cpp b/problems/chainwords/attachments/template.cpp
new file mode 100644
index 0000000..b9af1d8
--- /dev/null
+++ b/problems/chainwords/attachments/template.cpp
@@ -0,0 +1,21 @@
+#include <iostream>
+#include <string>
+#include <vector>
+#include <algorithm>
+
+using namespace std;
+
+int main()
+{
+ int n;
+ cin >> n; cin.ignore();
+ for (int i = 0; i < n; i++) {
+ string word;
+ getline(cin, word);
+ }
+
+ // Write an answer using cout. DON'T FORGET THE "<< endl"
+ // To debug: cerr << "Debug messages..." << endl;
+
+ cout << "winner" << endl;
+}