diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-09-30 16:08:27 +0530 |
commit | 3496b0ed08c51e37e135e686b1632fd86f930c2c (patch) | |
tree | 1da44792489607070f3b4ca14d82af05b73e362b /problems/theshopowner/attachments |
(init): Initialize repository.
Diffstat (limited to 'problems/theshopowner/attachments')
-rw-r--r-- | problems/theshopowner/attachments/template.c | 27 | ||||
-rw-r--r-- | problems/theshopowner/attachments/template.cpp | 27 | ||||
-rw-r--r-- | problems/theshopowner/attachments/template.java | 23 | ||||
-rw-r--r-- | problems/theshopowner/attachments/template.js | 14 | ||||
-rw-r--r-- | problems/theshopowner/attachments/template.py | 13 |
5 files changed, 104 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") |