aboutsummaryrefslogtreecommitdiff
path: root/problems/theshopowner/attachments/template.c
diff options
context:
space:
mode:
Diffstat (limited to 'problems/theshopowner/attachments/template.c')
-rw-r--r--problems/theshopowner/attachments/template.c27
1 files changed, 27 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;
+}