diff options
Diffstat (limited to 'problems/chainwords')
35 files changed, 244 insertions, 0 deletions
diff --git a/problems/chainwords/attachments/template.c b/problems/chainwords/attachments/template.c new file mode 100644 index 0000000..e933710 --- /dev/null +++ b/problems/chainwords/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 word[13]; + scanf("%[^\n]", word); fgetc(stdin); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("winner\n"); + + return 0; +} 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; +} diff --git a/problems/chainwords/attachments/template.java b/problems/chainwords/attachments/template.java new file mode 100644 index 0000000..90891b9 --- /dev/null +++ b/problems/chainwords/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 word = in.nextLine(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("winner"); + } +} diff --git a/problems/chainwords/attachments/template.js b/problems/chainwords/attachments/template.js new file mode 100644 index 0000000..a75fedb --- /dev/null +++ b/problems/chainwords/attachments/template.js @@ -0,0 +1,9 @@ +const N = parseInt(readline()); +for (let i = 0; i < N; i++) { + const word = readline(); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('winner'); diff --git a/problems/chainwords/attachments/template.py b/problems/chainwords/attachments/template.py new file mode 100644 index 0000000..e4374f1 --- /dev/null +++ b/problems/chainwords/attachments/template.py @@ -0,0 +1,11 @@ +import sys +import math + +n = int(input()) +for i in range(n): + word = input() + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("winner") diff --git a/problems/chainwords/data/secret/1.ans b/problems/chainwords/data/secret/1.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/1.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/1.in b/problems/chainwords/data/secret/1.in new file mode 100644 index 0000000..2b8e7c4 --- /dev/null +++ b/problems/chainwords/data/secret/1.in @@ -0,0 +1,5 @@ +4 +dog +cat +goat +toad diff --git a/problems/chainwords/data/secret/10.ans b/problems/chainwords/data/secret/10.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/10.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/10.in b/problems/chainwords/data/secret/10.in new file mode 100644 index 0000000..a996044 --- /dev/null +++ b/problems/chainwords/data/secret/10.in @@ -0,0 +1,13 @@ +12 +apple +banana +eggplant +elderberry +lemon +lychee +mango +nectarine +orange +pineapple +tangerine +yam diff --git a/problems/chainwords/data/secret/11.ans b/problems/chainwords/data/secret/11.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/11.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/11.in b/problems/chainwords/data/secret/11.in new file mode 100644 index 0000000..d72152f --- /dev/null +++ b/problems/chainwords/data/secret/11.in @@ -0,0 +1,17 @@ +16 +albatross +alligator +eagle +elephant +lion +llama +nightingale +narwhal +rooster +raccoon +rat +snake +squirrel +tiger +toucan +turtle diff --git a/problems/chainwords/data/secret/12.ans b/problems/chainwords/data/secret/12.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/12.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/12.in b/problems/chainwords/data/secret/12.in new file mode 100644 index 0000000..ad2c12b --- /dev/null +++ b/problems/chainwords/data/secret/12.in @@ -0,0 +1,17 @@ +16 +kayak +xylograph +hoax +oz +kilowattrel +zero +success +sulfuric +shrubs +kinetic +checkbook +zax +knockback +xyz +crashes +leak diff --git a/problems/chainwords/data/secret/13.ans b/problems/chainwords/data/secret/13.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/13.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/13.in b/problems/chainwords/data/secret/13.in new file mode 100644 index 0000000..3f66e72 --- /dev/null +++ b/problems/chainwords/data/secret/13.in @@ -0,0 +1,17 @@ +16 +tit +tat +text +toot +treat +theft +teapot +toilet +takeout +tonight +teleport +treatment +tournament +transparent +troubleshoot +trolled diff --git a/problems/chainwords/data/secret/14.ans b/problems/chainwords/data/secret/14.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/14.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/14.in b/problems/chainwords/data/secret/14.in new file mode 100644 index 0000000..031f9df --- /dev/null +++ b/problems/chainwords/data/secret/14.in @@ -0,0 +1,17 @@ +16 +ee +eke +eme +ene +ere +eve +ewe +exe +eye +ease +edge +else +eagle +easle +elite +evoke diff --git a/problems/chainwords/data/secret/2.ans b/problems/chainwords/data/secret/2.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/2.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/2.in b/problems/chainwords/data/secret/2.in new file mode 100644 index 0000000..cb87da6 --- /dev/null +++ b/problems/chainwords/data/secret/2.in @@ -0,0 +1,6 @@ +5 +tea +arc +cow +win +not diff --git a/problems/chainwords/data/secret/3.ans b/problems/chainwords/data/secret/3.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/3.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/3.in b/problems/chainwords/data/secret/3.in new file mode 100644 index 0000000..61c1983 --- /dev/null +++ b/problems/chainwords/data/secret/3.in @@ -0,0 +1,2 @@ +1 +codingame diff --git a/problems/chainwords/data/secret/4.ans b/problems/chainwords/data/secret/4.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/4.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/4.in b/problems/chainwords/data/secret/4.in new file mode 100644 index 0000000..25f79ed --- /dev/null +++ b/problems/chainwords/data/secret/4.in @@ -0,0 +1,2 @@ +1 +anepayzprb diff --git a/problems/chainwords/data/secret/5.ans b/problems/chainwords/data/secret/5.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/5.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/5.in b/problems/chainwords/data/secret/5.in new file mode 100644 index 0000000..9888d20 --- /dev/null +++ b/problems/chainwords/data/secret/5.in @@ -0,0 +1,7 @@ +6 +antenna +alpaca +amnesia +agenda +aorta +armada diff --git a/problems/chainwords/data/secret/6.ans b/problems/chainwords/data/secret/6.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/6.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/6.in b/problems/chainwords/data/secret/6.in new file mode 100644 index 0000000..1fd8a27 --- /dev/null +++ b/problems/chainwords/data/secret/6.in @@ -0,0 +1,9 @@ +8 +racer +racecar +regenerator +remover +reservoir +rhymer +roar +rustier diff --git a/problems/chainwords/data/secret/7.ans b/problems/chainwords/data/secret/7.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/7.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/7.in b/problems/chainwords/data/secret/7.in new file mode 100644 index 0000000..7353bd5 --- /dev/null +++ b/problems/chainwords/data/secret/7.in @@ -0,0 +1,9 @@ +8 +argentina +australia +chad +denmark +domrepublic +iran +kiribati +newzealand diff --git a/problems/chainwords/data/secret/8.ans b/problems/chainwords/data/secret/8.ans new file mode 100644 index 0000000..08b6485 --- /dev/null +++ b/problems/chainwords/data/secret/8.ans @@ -0,0 +1 @@ +Alice diff --git a/problems/chainwords/data/secret/8.in b/problems/chainwords/data/secret/8.in new file mode 100644 index 0000000..b2ed1a0 --- /dev/null +++ b/problems/chainwords/data/secret/8.in @@ -0,0 +1,9 @@ +8 +administered +establish +ghetto +hoax +loving +nuclei +outgrow +sleepiest diff --git a/problems/chainwords/data/secret/9.ans b/problems/chainwords/data/secret/9.ans new file mode 100644 index 0000000..92e9edc --- /dev/null +++ b/problems/chainwords/data/secret/9.ans @@ -0,0 +1 @@ +Bob diff --git a/problems/chainwords/data/secret/9.in b/problems/chainwords/data/secret/9.in new file mode 100644 index 0000000..b718d0d --- /dev/null +++ b/problems/chainwords/data/secret/9.in @@ -0,0 +1,13 @@ +12 +league +legends +ahri +aphelios +evelynn +ezreal +irelia +ivern +nami +nidalee +samira +sol diff --git a/problems/chainwords/domjudge-problem.ini b/problems/chainwords/domjudge-problem.ini new file mode 100644 index 0000000..f932d50 --- /dev/null +++ b/problems/chainwords/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Chain Words" +timelimit = 3 +points = 2 diff --git a/problems/chainwords/problem.pdf b/problems/chainwords/problem.pdf Binary files differnew file mode 100644 index 0000000..dc0b221 --- /dev/null +++ b/problems/chainwords/problem.pdf |