aboutsummaryrefslogtreecommitdiff
path: root/problems/whoisleading
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-09-30 16:08:27 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-09-30 16:08:27 +0530
commit3496b0ed08c51e37e135e686b1632fd86f930c2c (patch)
tree1da44792489607070f3b4ca14d82af05b73e362b /problems/whoisleading
(init): Initialize repository.
Diffstat (limited to 'problems/whoisleading')
-rw-r--r--problems/whoisleading/attachments/template.c23
-rw-r--r--problems/whoisleading/attachments/template.cpp23
-rw-r--r--problems/whoisleading/attachments/template.java20
-rw-r--r--problems/whoisleading/attachments/template.js10
-rw-r--r--problems/whoisleading/attachments/template.py12
-rw-r--r--problems/whoisleading/data/secret/1.ans2
-rw-r--r--problems/whoisleading/data/secret/1.in3
-rw-r--r--problems/whoisleading/data/secret/10.ans2
-rw-r--r--problems/whoisleading/data/secret/10.in3
-rw-r--r--problems/whoisleading/data/secret/2.ans2
-rw-r--r--problems/whoisleading/data/secret/2.in3
-rw-r--r--problems/whoisleading/data/secret/3.ans2
-rw-r--r--problems/whoisleading/data/secret/3.in3
-rw-r--r--problems/whoisleading/data/secret/4.ans2
-rw-r--r--problems/whoisleading/data/secret/4.in3
-rw-r--r--problems/whoisleading/data/secret/5.ans2
-rw-r--r--problems/whoisleading/data/secret/5.in3
-rw-r--r--problems/whoisleading/data/secret/6.ans2
-rw-r--r--problems/whoisleading/data/secret/6.in3
-rw-r--r--problems/whoisleading/data/secret/7.ans2
-rw-r--r--problems/whoisleading/data/secret/7.in3
-rw-r--r--problems/whoisleading/data/secret/8.ans2
-rw-r--r--problems/whoisleading/data/secret/8.in3
-rw-r--r--problems/whoisleading/data/secret/9.ans2
-rw-r--r--problems/whoisleading/data/secret/9.in3
-rw-r--r--problems/whoisleading/domjudge-problem.ini3
-rw-r--r--problems/whoisleading/problem.pdfbin0 -> 32333 bytes
27 files changed, 141 insertions, 0 deletions
diff --git a/problems/whoisleading/attachments/template.c b/problems/whoisleading/attachments/template.c
new file mode 100644
index 0000000..9b6c317
--- /dev/null
+++ b/problems/whoisleading/attachments/template.c
@@ -0,0 +1,23 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ char teams[101];
+ scanf("%[^\n]", teams); fgetc(stdin);
+ char scores_1[201];
+ scanf("%[^\n]", scores_1); fgetc(stdin);
+ char scores_2[201];
+ scanf("%[^\n]", scores_2);
+ for (int i = 0; i < 2; i++) {
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("Team name: score minutes_leading\n");
+ }
+
+ return 0;
+}
diff --git a/problems/whoisleading/attachments/template.cpp b/problems/whoisleading/attachments/template.cpp
new file mode 100644
index 0000000..8162bcb
--- /dev/null
+++ b/problems/whoisleading/attachments/template.cpp
@@ -0,0 +1,23 @@
+#include <iostream>
+#include <string>
+#include <vector>
+#include <algorithm>
+
+using namespace std;
+
+int main()
+{
+ string teams;
+ getline(cin, teams);
+ string scores_1;
+ getline(cin, scores_1);
+ string scores_2;
+ getline(cin, scores_2);
+ for (int i = 0; i < 2; i++) {
+
+ // Write an answer using cout. DON'T FORGET THE "<< endl"
+ // To debug: cerr << "Debug messages..." << endl;
+
+ cout << "Team name: score minutes_leading" << endl;
+ }
+}
diff --git a/problems/whoisleading/attachments/template.java b/problems/whoisleading/attachments/template.java
new file mode 100644
index 0000000..15ddadc
--- /dev/null
+++ b/problems/whoisleading/attachments/template.java
@@ -0,0 +1,20 @@
+import java.util.*;
+import java.io.*;
+import java.math.*;
+
+class Solution {
+
+ public static void main(String args[]) {
+ Scanner in = new Scanner(System.in);
+ String teams = in.nextLine();
+ String scores1 = in.nextLine();
+ String scores2 = in.nextLine();
+ for (int i = 0; i < 2; i++) {
+
+ // Write an answer using System.out.println()
+ // To debug: System.err.println("Debug messages...");
+
+ System.out.println("Team name: score minutes_leading");
+ }
+ }
+}
diff --git a/problems/whoisleading/attachments/template.js b/problems/whoisleading/attachments/template.js
new file mode 100644
index 0000000..25c3b89
--- /dev/null
+++ b/problems/whoisleading/attachments/template.js
@@ -0,0 +1,10 @@
+const teams = readline();
+const scores1 = readline();
+const scores2 = readline();
+for (let i = 0; i < 2; i++) {
+
+ // Write an answer using console.log()
+ // To debug: console.error('Debug messages...');
+
+ console.log('Team name: score minutes_leading');
+}
diff --git a/problems/whoisleading/attachments/template.py b/problems/whoisleading/attachments/template.py
new file mode 100644
index 0000000..d09c28e
--- /dev/null
+++ b/problems/whoisleading/attachments/template.py
@@ -0,0 +1,12 @@
+import sys
+import math
+
+teams = input()
+scores_1 = input()
+scores_2 = input()
+for i in range(2):
+
+ # Write an answer using print
+ # To debug: print("Debug messages...", file=sys.stderr, flush=True)
+
+ print("Team name: score minutes_leading")
diff --git a/problems/whoisleading/data/secret/1.ans b/problems/whoisleading/data/secret/1.ans
new file mode 100644
index 0000000..e8ef918
--- /dev/null
+++ b/problems/whoisleading/data/secret/1.ans
@@ -0,0 +1,2 @@
+A team: 23 42
+Another team: 26 23
diff --git a/problems/whoisleading/data/secret/1.in b/problems/whoisleading/data/secret/1.in
new file mode 100644
index 0000000..1f4243a
--- /dev/null
+++ b/problems/whoisleading/data/secret/1.in
@@ -0,0 +1,3 @@
+A team,Another team
+8 31 37,32,7,10
+15 19,17 20,27 29 67,76
diff --git a/problems/whoisleading/data/secret/10.ans b/problems/whoisleading/data/secret/10.ans
new file mode 100644
index 0000000..52246c7
--- /dev/null
+++ b/problems/whoisleading/data/secret/10.ans
@@ -0,0 +1,2 @@
+Team C: 13 0
+Team D: 13 0
diff --git a/problems/whoisleading/data/secret/10.in b/problems/whoisleading/data/secret/10.in
new file mode 100644
index 0000000..8940aeb
--- /dev/null
+++ b/problems/whoisleading/data/secret/10.in
@@ -0,0 +1,3 @@
+Team C,Team D
+20 22,,37,
+20,22,22,37
diff --git a/problems/whoisleading/data/secret/2.ans b/problems/whoisleading/data/secret/2.ans
new file mode 100644
index 0000000..4ee231a
--- /dev/null
+++ b/problems/whoisleading/data/secret/2.ans
@@ -0,0 +1,2 @@
+A team: 23 42
+Another team: 24 28
diff --git a/problems/whoisleading/data/secret/2.in b/problems/whoisleading/data/secret/2.in
new file mode 100644
index 0000000..71edbb8
--- /dev/null
+++ b/problems/whoisleading/data/secret/2.in
@@ -0,0 +1,3 @@
+A team,Another team
+9 34 37,39,11,67
+19 31,21,27 29 69,61
diff --git a/problems/whoisleading/data/secret/3.ans b/problems/whoisleading/data/secret/3.ans
new file mode 100644
index 0000000..8eab4e4
--- /dev/null
+++ b/problems/whoisleading/data/secret/3.ans
@@ -0,0 +1,2 @@
+England: 27 54
+Argentina: 10 5
diff --git a/problems/whoisleading/data/secret/3.in b/problems/whoisleading/data/secret/3.in
new file mode 100644
index 0000000..65482af
--- /dev/null
+++ b/problems/whoisleading/data/secret/3.in
@@ -0,0 +1,3 @@
+England,Argentina
+,,10 46 54 59 66 75,27 31 37
+79,80,5,
diff --git a/problems/whoisleading/data/secret/4.ans b/problems/whoisleading/data/secret/4.ans
new file mode 100644
index 0000000..ee95c17
--- /dev/null
+++ b/problems/whoisleading/data/secret/4.ans
@@ -0,0 +1,2 @@
+Wales: 32 67
+Fiji: 26 12
diff --git a/problems/whoisleading/data/secret/4.in b/problems/whoisleading/data/secret/4.in
new file mode 100644
index 0000000..19ca911
--- /dev/null
+++ b/problems/whoisleading/data/secret/4.in
@@ -0,0 +1,3 @@
+Wales,Fiji
+7 29 48 66,30 49 67,2 24,
+13 17 73 78,15 18 73,,
diff --git a/problems/whoisleading/data/secret/5.ans b/problems/whoisleading/data/secret/5.ans
new file mode 100644
index 0000000..c34b6c9
--- /dev/null
+++ b/problems/whoisleading/data/secret/5.ans
@@ -0,0 +1,2 @@
+France: 28 33
+South Africa: 29 24
diff --git a/problems/whoisleading/data/secret/5.in b/problems/whoisleading/data/secret/5.in
new file mode 100644
index 0000000..a6d0285
--- /dev/null
+++ b/problems/whoisleading/data/secret/5.in
@@ -0,0 +1,3 @@
+France,South Africa
+4 22 31,5 32,40 54 73,
+8 18 26 67,10 28 67,69,
diff --git a/problems/whoisleading/data/secret/6.ans b/problems/whoisleading/data/secret/6.ans
new file mode 100644
index 0000000..d01609a
--- /dev/null
+++ b/problems/whoisleading/data/secret/6.ans
@@ -0,0 +1,2 @@
+England: 15 75
+South Africa: 16 3
diff --git a/problems/whoisleading/data/secret/6.in b/problems/whoisleading/data/secret/6.in
new file mode 100644
index 0000000..4dd2846
--- /dev/null
+++ b/problems/whoisleading/data/secret/6.in
@@ -0,0 +1,3 @@
+England,South Africa
+,,3 10 24 39,53
+69,70,21 35 78,
diff --git a/problems/whoisleading/data/secret/7.ans b/problems/whoisleading/data/secret/7.ans
new file mode 100644
index 0000000..243257f
--- /dev/null
+++ b/problems/whoisleading/data/secret/7.ans
@@ -0,0 +1,2 @@
+New Zealand: 73 61
+Uruguay: 0 0
diff --git a/problems/whoisleading/data/secret/7.in b/problems/whoisleading/data/secret/7.in
new file mode 100644
index 0000000..b042d0b
--- /dev/null
+++ b/problems/whoisleading/data/secret/7.in
@@ -0,0 +1,3 @@
+New Zealand,Uruguay
+20 25 33 38 45 49 53 65 68 73 77,21 26 34 50 54 66 69 74 78,,
+,,,
diff --git a/problems/whoisleading/data/secret/8.ans b/problems/whoisleading/data/secret/8.ans
new file mode 100644
index 0000000..a9c4a02
--- /dev/null
+++ b/problems/whoisleading/data/secret/8.ans
@@ -0,0 +1,2 @@
+Scotland: 84 72
+Romania: 0 0
diff --git a/problems/whoisleading/data/secret/8.in b/problems/whoisleading/data/secret/8.in
new file mode 100644
index 0000000..74a0173
--- /dev/null
+++ b/problems/whoisleading/data/secret/8.in
@@ -0,0 +1,3 @@
+Scotland,Romania
+9 17 21 34 38 40 45 53 58 71 73 77,10 18 22 35 39 40 47 55 59 71 73 78,,
+,,,
diff --git a/problems/whoisleading/data/secret/9.ans b/problems/whoisleading/data/secret/9.ans
new file mode 100644
index 0000000..9be7575
--- /dev/null
+++ b/problems/whoisleading/data/secret/9.ans
@@ -0,0 +1,2 @@
+Team A: 15 0
+Team B: 15 0
diff --git a/problems/whoisleading/data/secret/9.in b/problems/whoisleading/data/secret/9.in
new file mode 100644
index 0000000..37515b0
--- /dev/null
+++ b/problems/whoisleading/data/secret/9.in
@@ -0,0 +1,3 @@
+Team A,Team B
+12 45,13,79,
+12 45,13,,79
diff --git a/problems/whoisleading/domjudge-problem.ini b/problems/whoisleading/domjudge-problem.ini
new file mode 100644
index 0000000..bd719f9
--- /dev/null
+++ b/problems/whoisleading/domjudge-problem.ini
@@ -0,0 +1,3 @@
+name = "Who is Leading?"
+timelimit = 3
+points = 2
diff --git a/problems/whoisleading/problem.pdf b/problems/whoisleading/problem.pdf
new file mode 100644
index 0000000..84ae1da
--- /dev/null
+++ b/problems/whoisleading/problem.pdf
Binary files differ