diff options
Diffstat (limited to 'problems/findpalindromes')
23 files changed, 133 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") diff --git a/problems/findpalindromes/data/secret/1.ans b/problems/findpalindromes/data/secret/1.ans new file mode 100644 index 0000000..97c28ba --- /dev/null +++ b/problems/findpalindromes/data/secret/1.ans @@ -0,0 +1,2 @@ +Strong Palindrome +Strong Palindrome diff --git a/problems/findpalindromes/data/secret/1.in b/problems/findpalindromes/data/secret/1.in new file mode 100644 index 0000000..666f80d --- /dev/null +++ b/problems/findpalindromes/data/secret/1.in @@ -0,0 +1,3 @@ +2 +kayak +KayaK diff --git a/problems/findpalindromes/data/secret/2.ans b/problems/findpalindromes/data/secret/2.ans new file mode 100644 index 0000000..97c28ba --- /dev/null +++ b/problems/findpalindromes/data/secret/2.ans @@ -0,0 +1,2 @@ +Strong Palindrome +Strong Palindrome diff --git a/problems/findpalindromes/data/secret/2.in b/problems/findpalindromes/data/secret/2.in new file mode 100644 index 0000000..52a4f82 --- /dev/null +++ b/problems/findpalindromes/data/secret/2.in @@ -0,0 +1,3 @@ +2 +azertyuiopoiuytreza +Nah That's'tahT haN diff --git a/problems/findpalindromes/data/secret/3.ans b/problems/findpalindromes/data/secret/3.ans new file mode 100644 index 0000000..73b9190 --- /dev/null +++ b/problems/findpalindromes/data/secret/3.ans @@ -0,0 +1,2 @@ +Weak Palindrome +Weak Palindrome diff --git a/problems/findpalindromes/data/secret/3.in b/problems/findpalindromes/data/secret/3.in new file mode 100644 index 0000000..15e8e79 --- /dev/null +++ b/problems/findpalindromes/data/secret/3.in @@ -0,0 +1,3 @@ +2 +Kayak +hellEh diff --git a/problems/findpalindromes/data/secret/4.ans b/problems/findpalindromes/data/secret/4.ans new file mode 100644 index 0000000..73b9190 --- /dev/null +++ b/problems/findpalindromes/data/secret/4.ans @@ -0,0 +1,2 @@ +Weak Palindrome +Weak Palindrome diff --git a/problems/findpalindromes/data/secret/4.in b/problems/findpalindromes/data/secret/4.in new file mode 100644 index 0000000..1a0eb46 --- /dev/null +++ b/problems/findpalindromes/data/secret/4.in @@ -0,0 +1,3 @@ +2 +azerTYUiopoiuytreza +NAH That's'TAHT haN diff --git a/problems/findpalindromes/data/secret/5.ans b/problems/findpalindromes/data/secret/5.ans new file mode 100644 index 0000000..d957986 --- /dev/null +++ b/problems/findpalindromes/data/secret/5.ans @@ -0,0 +1,6 @@ +Not a Palindrome +Not a Palindrome +Not a Palindrome +Not a Palindrome +Strong Palindrome +Weak Palindrome diff --git a/problems/findpalindromes/data/secret/5.in b/problems/findpalindromes/data/secret/5.in new file mode 100644 index 0000000..151a785 --- /dev/null +++ b/problems/findpalindromes/data/secret/5.in @@ -0,0 +1,7 @@ +6 +bye bye +Not this time! +Ty for reading this btw +Idk if you're struggling with tests, gl +kayak, gotchahctog ,kayak +Anotherehtona diff --git a/problems/findpalindromes/data/secret/6.ans b/problems/findpalindromes/data/secret/6.ans new file mode 100644 index 0000000..93f90f7 --- /dev/null +++ b/problems/findpalindromes/data/secret/6.ans @@ -0,0 +1 @@ +Not a Palindrome diff --git a/problems/findpalindromes/data/secret/6.in b/problems/findpalindromes/data/secret/6.in new file mode 100644 index 0000000..88fe0c3 --- /dev/null +++ b/problems/findpalindromes/data/secret/6.in @@ -0,0 +1,2 @@ +1 +I'm too lazy to do it lol diff --git a/problems/findpalindromes/data/secret/7.ans b/problems/findpalindromes/data/secret/7.ans new file mode 100644 index 0000000..c067956 --- /dev/null +++ b/problems/findpalindromes/data/secret/7.ans @@ -0,0 +1,2 @@ +Strong Palindrome +Weak Palindrome diff --git a/problems/findpalindromes/data/secret/7.in b/problems/findpalindromes/data/secret/7.in new file mode 100644 index 0000000..90ae75b --- /dev/null +++ b/problems/findpalindromes/data/secret/7.in @@ -0,0 +1,3 @@ +2 +BeVentyr6uu6rytneVeB +gvjJkhH6sJjs6HhkJjvg diff --git a/problems/findpalindromes/data/secret/8.ans b/problems/findpalindromes/data/secret/8.ans new file mode 100644 index 0000000..3c6e716 --- /dev/null +++ b/problems/findpalindromes/data/secret/8.ans @@ -0,0 +1,2 @@ +Strong Palindrome +Not a Palindrome diff --git a/problems/findpalindromes/data/secret/8.in b/problems/findpalindromes/data/secret/8.in new file mode 100644 index 0000000..29c553f --- /dev/null +++ b/problems/findpalindromes/data/secret/8.in @@ -0,0 +1,3 @@ +2 +CEcFPblaEBBEalbPFcEC +hell nah that's not diff --git a/problems/findpalindromes/domjudge-problem.ini b/problems/findpalindromes/domjudge-problem.ini new file mode 100644 index 0000000..6287c47 --- /dev/null +++ b/problems/findpalindromes/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Find Palindromes" +timelimit = 3 +points = 2 diff --git a/problems/findpalindromes/problem.pdf b/problems/findpalindromes/problem.pdf Binary files differnew file mode 100644 index 0000000..0adf1a1 --- /dev/null +++ b/problems/findpalindromes/problem.pdf |