diff options
Diffstat (limited to 'problems/partitionnumbers/attachments')
-rw-r--r-- | problems/partitionnumbers/attachments/template.c | 21 | ||||
-rw-r--r-- | problems/partitionnumbers/attachments/template.cpp | 21 | ||||
-rw-r--r-- | problems/partitionnumbers/attachments/template.java | 19 | ||||
-rw-r--r-- | problems/partitionnumbers/attachments/template.js | 9 | ||||
-rw-r--r-- | problems/partitionnumbers/attachments/template.py | 11 |
5 files changed, 81 insertions, 0 deletions
diff --git a/problems/partitionnumbers/attachments/template.c b/problems/partitionnumbers/attachments/template.c new file mode 100644 index 0000000..a715c25 --- /dev/null +++ b/problems/partitionnumbers/attachments/template.c @@ -0,0 +1,21 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int T; + scanf("%d", &T); + for (int i = 0; i < T; i++) { + int n; + scanf("%d", &n); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("partitions\n"); + + return 0; +} diff --git a/problems/partitionnumbers/attachments/template.cpp b/problems/partitionnumbers/attachments/template.cpp new file mode 100644 index 0000000..4fa1657 --- /dev/null +++ b/problems/partitionnumbers/attachments/template.cpp @@ -0,0 +1,21 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + int t; + cin >> t; cin.ignore(); + for (int i = 0; i < t; i++) { + int n; + cin >> n; cin.ignore(); + } + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "partitions" << endl; +} diff --git a/problems/partitionnumbers/attachments/template.java b/problems/partitionnumbers/attachments/template.java new file mode 100644 index 0000000..e800dde --- /dev/null +++ b/problems/partitionnumbers/attachments/template.java @@ -0,0 +1,19 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int T = in.nextInt(); + for (int i = 0; i < T; i++) { + int n = in.nextInt(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("partitions"); + } +} diff --git a/problems/partitionnumbers/attachments/template.js b/problems/partitionnumbers/attachments/template.js new file mode 100644 index 0000000..77897b3 --- /dev/null +++ b/problems/partitionnumbers/attachments/template.js @@ -0,0 +1,9 @@ +const T = parseInt(readline()); +for (let i = 0; i < T; i++) { + const n = parseInt(readline()); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('partitions'); diff --git a/problems/partitionnumbers/attachments/template.py b/problems/partitionnumbers/attachments/template.py new file mode 100644 index 0000000..b60f649 --- /dev/null +++ b/problems/partitionnumbers/attachments/template.py @@ -0,0 +1,11 @@ +import sys +import math + +t = int(input()) +for i in range(t): + n = int(input()) + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("partitions") |