aboutsummaryrefslogtreecommitdiff
path: root/problems/theshopowner
diff options
context:
space:
mode:
Diffstat (limited to 'problems/theshopowner')
-rw-r--r--problems/theshopowner/attachments/template.c27
-rw-r--r--problems/theshopowner/attachments/template.cpp27
-rw-r--r--problems/theshopowner/attachments/template.java23
-rw-r--r--problems/theshopowner/attachments/template.js14
-rw-r--r--problems/theshopowner/attachments/template.py13
-rw-r--r--problems/theshopowner/data/secret/1.ans1
-rw-r--r--problems/theshopowner/data/secret/1.in5
-rw-r--r--problems/theshopowner/data/secret/10.ans1
-rw-r--r--problems/theshopowner/data/secret/10.in6
-rw-r--r--problems/theshopowner/data/secret/2.ans1
-rw-r--r--problems/theshopowner/data/secret/2.in6
-rw-r--r--problems/theshopowner/data/secret/3.ans1
-rw-r--r--problems/theshopowner/data/secret/3.in5
-rw-r--r--problems/theshopowner/data/secret/4.ans1
-rw-r--r--problems/theshopowner/data/secret/4.in6
-rw-r--r--problems/theshopowner/data/secret/5.ans1
-rw-r--r--problems/theshopowner/data/secret/5.in6
-rw-r--r--problems/theshopowner/data/secret/6.ans1
-rw-r--r--problems/theshopowner/data/secret/6.in7
-rw-r--r--problems/theshopowner/data/secret/7.ans1
-rw-r--r--problems/theshopowner/data/secret/7.in3
-rw-r--r--problems/theshopowner/data/secret/8.ans1
-rw-r--r--problems/theshopowner/data/secret/8.in3
-rw-r--r--problems/theshopowner/data/secret/9.ans1
-rw-r--r--problems/theshopowner/data/secret/9.in6
-rw-r--r--problems/theshopowner/domjudge-problem.ini3
-rw-r--r--problems/theshopowner/problem.pdfbin0 -> 27691 bytes
27 files changed, 170 insertions, 0 deletions
diff --git a/problems/theshopowner/attachments/template.c b/problems/theshopowner/attachments/template.c
new file mode 100644
index 0000000..0d1ad6c
--- /dev/null
+++ b/problems/theshopowner/attachments/template.c
@@ -0,0 +1,27 @@
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <stdbool.h>
+
+int main()
+{
+ int d;
+ scanf("%d", &d);
+ int c;
+ scanf("%d", &c);
+ int n;
+ scanf("%d", &n);
+ for (int i = 0; i < n; i++) {
+ int unit_cost;
+ int unit_revenue;
+ int quantity;
+ scanf("%d%d%d", &unit_cost, &unit_revenue, &quantity);
+ }
+
+ // Write an answer using printf(). DON'T FORGET THE TRAILING \n
+ // To debug: fprintf(stderr, "Debug messages...\n");
+
+ printf("answer\n");
+
+ return 0;
+}
diff --git a/problems/theshopowner/attachments/template.cpp b/problems/theshopowner/attachments/template.cpp
new file mode 100644
index 0000000..9b47479
--- /dev/null
+++ b/problems/theshopowner/attachments/template.cpp
@@ -0,0 +1,27 @@
+#include <iostream>
+#include <string>
+#include <vector>
+#include <algorithm>
+
+using namespace std;
+
+int main()
+{
+ int d;
+ cin >> d; cin.ignore();
+ int c;
+ cin >> c; cin.ignore();
+ int n;
+ cin >> n; cin.ignore();
+ for (int i = 0; i < n; i++) {
+ int unit_cost;
+ int unit_revenue;
+ int quantity;
+ cin >> unit_cost >> unit_revenue >> quantity; cin.ignore();
+ }
+
+ // Write an answer using cout. DON'T FORGET THE "<< endl"
+ // To debug: cerr << "Debug messages..." << endl;
+
+ cout << "answer" << endl;
+}
diff --git a/problems/theshopowner/attachments/template.java b/problems/theshopowner/attachments/template.java
new file mode 100644
index 0000000..8a9f35a
--- /dev/null
+++ b/problems/theshopowner/attachments/template.java
@@ -0,0 +1,23 @@
+import java.util.*;
+import java.io.*;
+import java.math.*;
+
+class Solution {
+
+ public static void main(String args[]) {
+ Scanner in = new Scanner(System.in);
+ int d = in.nextInt();
+ int c = in.nextInt();
+ int n = in.nextInt();
+ for (int i = 0; i < n; i++) {
+ int unitCost = in.nextInt();
+ int unitRevenue = in.nextInt();
+ int quantity = in.nextInt();
+ }
+
+ // Write an answer using System.out.println()
+ // To debug: System.err.println("Debug messages...");
+
+ System.out.println("answer");
+ }
+}
diff --git a/problems/theshopowner/attachments/template.js b/problems/theshopowner/attachments/template.js
new file mode 100644
index 0000000..ecb01d7
--- /dev/null
+++ b/problems/theshopowner/attachments/template.js
@@ -0,0 +1,14 @@
+const d = parseInt(readline());
+const c = parseInt(readline());
+const n = parseInt(readline());
+for (let i = 0; i < n; i++) {
+ var inputs = readline().split(' ');
+ const unitCost = parseInt(inputs[0]);
+ const unitRevenue = parseInt(inputs[1]);
+ const quantity = parseInt(inputs[2]);
+}
+
+// Write an answer using console.log()
+// To debug: console.error('Debug messages...');
+
+console.log('answer');
diff --git a/problems/theshopowner/attachments/template.py b/problems/theshopowner/attachments/template.py
new file mode 100644
index 0000000..f8dc42d
--- /dev/null
+++ b/problems/theshopowner/attachments/template.py
@@ -0,0 +1,13 @@
+import sys
+import math
+
+d = int(input())
+c = int(input())
+n = int(input())
+for i in range(n):
+ unit_cost, unit_revenue, quantity = [int(j) for j in input().split()]
+
+# Write an answer using print
+# To debug: print("Debug messages...", file=sys.stderr, flush=True)
+
+print("answer")
diff --git a/problems/theshopowner/data/secret/1.ans b/problems/theshopowner/data/secret/1.ans
new file mode 100644
index 0000000..a45fd52
--- /dev/null
+++ b/problems/theshopowner/data/secret/1.ans
@@ -0,0 +1 @@
+24
diff --git a/problems/theshopowner/data/secret/1.in b/problems/theshopowner/data/secret/1.in
new file mode 100644
index 0000000..01c4875
--- /dev/null
+++ b/problems/theshopowner/data/secret/1.in
@@ -0,0 +1,5 @@
+3
+3
+2
+1 2 25
+3 5 50
diff --git a/problems/theshopowner/data/secret/10.ans b/problems/theshopowner/data/secret/10.ans
new file mode 100644
index 0000000..48082f7
--- /dev/null
+++ b/problems/theshopowner/data/secret/10.ans
@@ -0,0 +1 @@
+12
diff --git a/problems/theshopowner/data/secret/10.in b/problems/theshopowner/data/secret/10.in
new file mode 100644
index 0000000..e162081
--- /dev/null
+++ b/problems/theshopowner/data/secret/10.in
@@ -0,0 +1,6 @@
+40
+12
+3
+12 11 15
+25 22 25
+10 9 6
diff --git a/problems/theshopowner/data/secret/2.ans b/problems/theshopowner/data/secret/2.ans
new file mode 100644
index 0000000..21e72e8
--- /dev/null
+++ b/problems/theshopowner/data/secret/2.ans
@@ -0,0 +1 @@
+48
diff --git a/problems/theshopowner/data/secret/2.in b/problems/theshopowner/data/secret/2.in
new file mode 100644
index 0000000..b8144c5
--- /dev/null
+++ b/problems/theshopowner/data/secret/2.in
@@ -0,0 +1,6 @@
+3
+6
+3
+3 6 25
+6 9 2
+5 6 54
diff --git a/problems/theshopowner/data/secret/3.ans b/problems/theshopowner/data/secret/3.ans
new file mode 100644
index 0000000..b4de394
--- /dev/null
+++ b/problems/theshopowner/data/secret/3.ans
@@ -0,0 +1 @@
+11
diff --git a/problems/theshopowner/data/secret/3.in b/problems/theshopowner/data/secret/3.in
new file mode 100644
index 0000000..c1669ed
--- /dev/null
+++ b/problems/theshopowner/data/secret/3.in
@@ -0,0 +1,5 @@
+2
+5
+2
+3 5 55
+10 11 25
diff --git a/problems/theshopowner/data/secret/4.ans b/problems/theshopowner/data/secret/4.ans
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/problems/theshopowner/data/secret/4.ans
@@ -0,0 +1 @@
+8
diff --git a/problems/theshopowner/data/secret/4.in b/problems/theshopowner/data/secret/4.in
new file mode 100644
index 0000000..f743e7b
--- /dev/null
+++ b/problems/theshopowner/data/secret/4.in
@@ -0,0 +1,6 @@
+3
+4
+3
+3 4 25
+45 55 55
+5 6 25
diff --git a/problems/theshopowner/data/secret/5.ans b/problems/theshopowner/data/secret/5.ans
new file mode 100644
index 0000000..d81cc07
--- /dev/null
+++ b/problems/theshopowner/data/secret/5.ans
@@ -0,0 +1 @@
+42
diff --git a/problems/theshopowner/data/secret/5.in b/problems/theshopowner/data/secret/5.in
new file mode 100644
index 0000000..7f35731
--- /dev/null
+++ b/problems/theshopowner/data/secret/5.in
@@ -0,0 +1,6 @@
+6
+4
+3
+3 4 5
+5 8 25
+8 12 2
diff --git a/problems/theshopowner/data/secret/6.ans b/problems/theshopowner/data/secret/6.ans
new file mode 100644
index 0000000..abdfb05
--- /dev/null
+++ b/problems/theshopowner/data/secret/6.ans
@@ -0,0 +1 @@
+60
diff --git a/problems/theshopowner/data/secret/6.in b/problems/theshopowner/data/secret/6.in
new file mode 100644
index 0000000..ed5c6be
--- /dev/null
+++ b/problems/theshopowner/data/secret/6.in
@@ -0,0 +1,7 @@
+6
+12
+4
+6 7 25
+14 17 25
+16 23 25
+24 32 2
diff --git a/problems/theshopowner/data/secret/7.ans b/problems/theshopowner/data/secret/7.ans
new file mode 100644
index 0000000..1e8b314
--- /dev/null
+++ b/problems/theshopowner/data/secret/7.ans
@@ -0,0 +1 @@
+6
diff --git a/problems/theshopowner/data/secret/7.in b/problems/theshopowner/data/secret/7.in
new file mode 100644
index 0000000..3644fb5
--- /dev/null
+++ b/problems/theshopowner/data/secret/7.in
@@ -0,0 +1,3 @@
+3
+6
+0
diff --git a/problems/theshopowner/data/secret/8.ans b/problems/theshopowner/data/secret/8.ans
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/problems/theshopowner/data/secret/8.ans
@@ -0,0 +1 @@
+8
diff --git a/problems/theshopowner/data/secret/8.in b/problems/theshopowner/data/secret/8.in
new file mode 100644
index 0000000..bcd7b29
--- /dev/null
+++ b/problems/theshopowner/data/secret/8.in
@@ -0,0 +1,3 @@
+5
+8
+0
diff --git a/problems/theshopowner/data/secret/9.ans b/problems/theshopowner/data/secret/9.ans
new file mode 100644
index 0000000..1e8b314
--- /dev/null
+++ b/problems/theshopowner/data/secret/9.ans
@@ -0,0 +1 @@
+6
diff --git a/problems/theshopowner/data/secret/9.in b/problems/theshopowner/data/secret/9.in
new file mode 100644
index 0000000..d20d2ae
--- /dev/null
+++ b/problems/theshopowner/data/secret/9.in
@@ -0,0 +1,6 @@
+5
+6
+3
+6 5 58
+4 3 5
+2 1 5
diff --git a/problems/theshopowner/domjudge-problem.ini b/problems/theshopowner/domjudge-problem.ini
new file mode 100644
index 0000000..112289d
--- /dev/null
+++ b/problems/theshopowner/domjudge-problem.ini
@@ -0,0 +1,3 @@
+name = "The Shop Owner"
+timelimit = 3
+points = 2
diff --git a/problems/theshopowner/problem.pdf b/problems/theshopowner/problem.pdf
new file mode 100644
index 0000000..9db31ab
--- /dev/null
+++ b/problems/theshopowner/problem.pdf
Binary files differ