aboutsummaryrefslogtreecommitdiff
path: root/problems/wordle/attachments
diff options
context:
space:
mode:
Diffstat (limited to 'problems/wordle/attachments')
-rw-r--r--problems/wordle/attachments/template.c25
-rw-r--r--problems/wordle/attachments/template.cpp25
-rw-r--r--problems/wordle/attachments/template.java25
-rw-r--r--problems/wordle/attachments/template.js12
-rw-r--r--problems/wordle/attachments/template.py13
5 files changed, 100 insertions, 0 deletions
diff --git a/problems/wordle/attachments/template.c b/problems/wordle/attachments/template.c
new file mode 100644
index 0000000..7aad312
--- /dev/null
+++ b/problems/wordle/attachments/template.c
@@ -0,0 +1,25 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ char solution[6];
+ scanf("%[^\n]", solution);
+ int n;
+ scanf("%d", &n); fgetc(stdin);
+ for (int i = 0; i < n; i++) {
+ char guess[6];
+ scanf("%[^\n]", guess); fgetc(stdin);
+ }
+ for (int i = 0; i < n; i++) {
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("__G_Y\n");
+ }
+
+ return 0;
+}
diff --git a/problems/wordle/attachments/template.cpp b/problems/wordle/attachments/template.cpp
new file mode 100644
index 0000000..56b2860
--- /dev/null
+++ b/problems/wordle/attachments/template.cpp
@@ -0,0 +1,25 @@
+#include <iostream>
+#include <string>
+#include <vector>
+#include <algorithm>
+
+using namespace std;
+
+int main()
+{
+ string solution;
+ getline(cin, solution);
+ int n;
+ cin >> n; cin.ignore();
+ for (int i = 0; i < n; i++) {
+ string guess;
+ getline(cin, guess);
+ }
+ for (int i = 0; i < n; i++) {
+
+ // Write an answer using cout. DON'T FORGET THE "<< endl"
+ // To debug: cerr << "Debug messages..." << endl;
+
+ cout << "__G_Y" << endl;
+ }
+}
diff --git a/problems/wordle/attachments/template.java b/problems/wordle/attachments/template.java
new file mode 100644
index 0000000..1027853
--- /dev/null
+++ b/problems/wordle/attachments/template.java
@@ -0,0 +1,25 @@
+import java.util.*;
+import java.io.*;
+import java.math.*;
+
+class Solution {
+
+ public static void main(String args[]) {
+ Scanner in = new Scanner(System.in);
+ String solution = in.nextLine();
+ int n = in.nextInt();
+ if (in.hasNextLine()) {
+ in.nextLine();
+ }
+ for (int i = 0; i < n; i++) {
+ String guess = in.nextLine();
+ }
+ for (int i = 0; i < n; i++) {
+
+ // Write an answer using System.out.println()
+ // To debug: System.err.println("Debug messages...");
+
+ System.out.println("__G_Y");
+ }
+ }
+}
diff --git a/problems/wordle/attachments/template.js b/problems/wordle/attachments/template.js
new file mode 100644
index 0000000..6d46846
--- /dev/null
+++ b/problems/wordle/attachments/template.js
@@ -0,0 +1,12 @@
+const solution = readline();
+const n = parseInt(readline());
+for (let i = 0; i < n; i++) {
+ const guess = readline();
+}
+for (let i = 0; i < n; i++) {
+
+ // Write an answer using console.log()
+ // To debug: console.error('Debug messages...');
+
+ console.log('__G_Y');
+}
diff --git a/problems/wordle/attachments/template.py b/problems/wordle/attachments/template.py
new file mode 100644
index 0000000..fbf4b41
--- /dev/null
+++ b/problems/wordle/attachments/template.py
@@ -0,0 +1,13 @@
+import sys
+import math
+
+solution = input()
+n = int(input())
+for i in range(n):
+ guess = input()
+for i in range(n):
+
+ # Write an answer using print
+ # To debug: print("Debug messages...", file=sys.stderr, flush=True)
+
+ print("__G_Y")