aboutsummaryrefslogtreecommitdiff
path: root/problems/findpalindromes/attachments
diff options
context:
space:
mode:
Diffstat (limited to 'problems/findpalindromes/attachments')
-rw-r--r--problems/findpalindromes/attachments/template.c21
-rw-r--r--problems/findpalindromes/attachments/template.cpp21
-rw-r--r--problems/findpalindromes/attachments/template.java22
-rw-r--r--problems/findpalindromes/attachments/template.js9
-rw-r--r--problems/findpalindromes/attachments/template.py11
5 files changed, 84 insertions, 0 deletions
diff --git a/problems/findpalindromes/attachments/template.c b/problems/findpalindromes/attachments/template.c
new file mode 100644
index 0000000..cd786d1
--- /dev/null
+++ b/problems/findpalindromes/attachments/template.c
@@ -0,0 +1,21 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ int n;
+ scanf("%d", &n); fgetc(stdin);
+ for (int i = 0; i < n; i++) {
+ char s[257];
+ scanf("%[^\n]", s); fgetc(stdin);
+ }
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("good_luck\n");
+
+ return 0;
+}
diff --git a/problems/findpalindromes/attachments/template.cpp b/problems/findpalindromes/attachments/template.cpp
new file mode 100644
index 0000000..d984192
--- /dev/null
+++ b/problems/findpalindromes/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 s;
+ getline(cin, s);
+ }
+
+ // Write an answer using cout. DON'T FORGET THE "<< endl"
+ // To debug: cerr << "Debug messages..." << endl;
+
+ cout << "good_luck" << endl;
+}
diff --git a/problems/findpalindromes/attachments/template.java b/problems/findpalindromes/attachments/template.java
new file mode 100644
index 0000000..f4c116d
--- /dev/null
+++ b/problems/findpalindromes/attachments/template.java
@@ -0,0 +1,22 @@
+import java.util.*;
+import java.io.*;
+import java.math.*;
+
+class Solution {
+
+ public static void main(String args[]) {
+ Scanner in = new Scanner(System.in);
+ int n = in.nextInt();
+ if (in.hasNextLine()) {
+ in.nextLine();
+ }
+ for (int i = 0; i < n; i++) {
+ String s = in.nextLine();
+ }
+
+ // Write an answer using System.out.println()
+ // To debug: System.err.println("Debug messages...");
+
+ System.out.println("good_luck");
+ }
+}
diff --git a/problems/findpalindromes/attachments/template.js b/problems/findpalindromes/attachments/template.js
new file mode 100644
index 0000000..8cc2067
--- /dev/null
+++ b/problems/findpalindromes/attachments/template.js
@@ -0,0 +1,9 @@
+const n = parseInt(readline());
+for (let i = 0; i < n; i++) {
+ const s = readline();
+}
+
+// Write an answer using console.log()
+// To debug: console.error('Debug messages...');
+
+console.log('good_luck');
diff --git a/problems/findpalindromes/attachments/template.py b/problems/findpalindromes/attachments/template.py
new file mode 100644
index 0000000..a4d4284
--- /dev/null
+++ b/problems/findpalindromes/attachments/template.py
@@ -0,0 +1,11 @@
+import sys
+import math
+
+n = int(input())
+for i in range(n):
+ s = input()
+
+# Write an answer using print
+# To debug: print("Debug messages...", file=sys.stderr, flush=True)
+
+print("good_luck")