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/pixelpolygons/attachments |
(init): Initialize repository.
Diffstat (limited to 'problems/pixelpolygons/attachments')
-rw-r--r-- | problems/pixelpolygons/attachments/template.c | 21 | ||||
-rw-r--r-- | problems/pixelpolygons/attachments/template.cpp | 21 | ||||
-rw-r--r-- | problems/pixelpolygons/attachments/template.java | 22 | ||||
-rw-r--r-- | problems/pixelpolygons/attachments/template.js | 10 | ||||
-rw-r--r-- | problems/pixelpolygons/attachments/template.py | 11 |
5 files changed, 85 insertions, 0 deletions
diff --git a/problems/pixelpolygons/attachments/template.c b/problems/pixelpolygons/attachments/template.c new file mode 100644 index 0000000..f487d2f --- /dev/null +++ b/problems/pixelpolygons/attachments/template.c @@ -0,0 +1,21 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int N; + scanf("%d", &N); fgetc(stdin); + for (int i = 0; i < N; i++) { + char line[N + 1]; + scanf("%[^\n]", line); fgetc(stdin); + } + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("number_of_sides\n"); + + return 0; +} diff --git a/problems/pixelpolygons/attachments/template.cpp b/problems/pixelpolygons/attachments/template.cpp new file mode 100644 index 0000000..f170242 --- /dev/null +++ b/problems/pixelpolygons/attachments/template.cpp @@ -0,0 +1,21 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + int n; + cin >> n; cin.ignore(); + for (int i = 0; i < n; i++) { + string line; + getline(cin, line); + } + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "number_of_sides" << endl; +} diff --git a/problems/pixelpolygons/attachments/template.java b/problems/pixelpolygons/attachments/template.java new file mode 100644 index 0000000..2a15894 --- /dev/null +++ b/problems/pixelpolygons/attachments/template.java @@ -0,0 +1,22 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + int N = in.nextInt(); + if (in.hasNextLine()) { + in.nextLine(); + } + for (int i = 0; i < N; i++) { + String line = in.nextLine(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("number_of_sides"); + } +} diff --git a/problems/pixelpolygons/attachments/template.js b/problems/pixelpolygons/attachments/template.js new file mode 100644 index 0000000..6dde043 --- /dev/null +++ b/problems/pixelpolygons/attachments/template.js @@ -0,0 +1,10 @@ +const N = parseInt(readline()); +for (let i = 0; i < N; i++) { + const line = readline(); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('number_of_sides'); + diff --git a/problems/pixelpolygons/attachments/template.py b/problems/pixelpolygons/attachments/template.py new file mode 100644 index 0000000..46c645b --- /dev/null +++ b/problems/pixelpolygons/attachments/template.py @@ -0,0 +1,11 @@ +import sys +import math + +n = int(input()) +for i in range(n): + line = input() + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("number_of_sides") |