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 |
(init): Initialize repository.
Diffstat (limited to 'problems/pixelpolygons')
39 files changed, 226 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") diff --git a/problems/pixelpolygons/data/secret/1.ans b/problems/pixelpolygons/data/secret/1.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/1.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/1.in b/problems/pixelpolygons/data/secret/1.in new file mode 100644 index 0000000..cdf2730 --- /dev/null +++ b/problems/pixelpolygons/data/secret/1.in @@ -0,0 +1,5 @@ +4 +.... +.##. +.##. +.... diff --git a/problems/pixelpolygons/data/secret/10.ans b/problems/pixelpolygons/data/secret/10.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/10.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/10.in b/problems/pixelpolygons/data/secret/10.in new file mode 100644 index 0000000..1eb2cb0 --- /dev/null +++ b/problems/pixelpolygons/data/secret/10.in @@ -0,0 +1,7 @@ +6 +...... +...... +.####. +...... +...... +...... diff --git a/problems/pixelpolygons/data/secret/11.ans b/problems/pixelpolygons/data/secret/11.ans new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/problems/pixelpolygons/data/secret/11.ans @@ -0,0 +1 @@ +18 diff --git a/problems/pixelpolygons/data/secret/11.in b/problems/pixelpolygons/data/secret/11.in new file mode 100644 index 0000000..f0e9f9d --- /dev/null +++ b/problems/pixelpolygons/data/secret/11.in @@ -0,0 +1,11 @@ +10 +.......... +.########. +........#. +.######.#. +.#....#.#. +.#.#..#.#. +.#.####.#. +.#......#. +.########. +.......... diff --git a/problems/pixelpolygons/data/secret/12.ans b/problems/pixelpolygons/data/secret/12.ans new file mode 100644 index 0000000..3c03207 --- /dev/null +++ b/problems/pixelpolygons/data/secret/12.ans @@ -0,0 +1 @@ +18 diff --git a/problems/pixelpolygons/data/secret/12.in b/problems/pixelpolygons/data/secret/12.in new file mode 100644 index 0000000..92ecade --- /dev/null +++ b/problems/pixelpolygons/data/secret/12.in @@ -0,0 +1,11 @@ +10 +.......... +.######.#. +.#....#.#. +.#.##.#.#. +.#.#..#.#. +.#.#..#.#. +.#.####.#. +.#......#. +.########. +.......... diff --git a/problems/pixelpolygons/data/secret/13.ans b/problems/pixelpolygons/data/secret/13.ans new file mode 100644 index 0000000..c739b42 --- /dev/null +++ b/problems/pixelpolygons/data/secret/13.ans @@ -0,0 +1 @@ +44 diff --git a/problems/pixelpolygons/data/secret/13.in b/problems/pixelpolygons/data/secret/13.in new file mode 100644 index 0000000..c70f5bf --- /dev/null +++ b/problems/pixelpolygons/data/secret/13.in @@ -0,0 +1,11 @@ +10 +.......... +.#.#.#.##. +.########. +...####... +.######.#. +..###.###. +.###...... +.########. +..###..##. +.......... diff --git a/problems/pixelpolygons/data/secret/14.ans b/problems/pixelpolygons/data/secret/14.ans new file mode 100644 index 0000000..6f4247a --- /dev/null +++ b/problems/pixelpolygons/data/secret/14.ans @@ -0,0 +1 @@ +26 diff --git a/problems/pixelpolygons/data/secret/14.in b/problems/pixelpolygons/data/secret/14.in new file mode 100644 index 0000000..f2c4a1a --- /dev/null +++ b/problems/pixelpolygons/data/secret/14.in @@ -0,0 +1,11 @@ +10 +.......... +..###.###. +.########. +.########. +.########. +..######.. +..#######. +.###.##... +.#........ +.......... diff --git a/problems/pixelpolygons/data/secret/15.ans b/problems/pixelpolygons/data/secret/15.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/15.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/15.in b/problems/pixelpolygons/data/secret/15.in new file mode 100644 index 0000000..194e72c --- /dev/null +++ b/problems/pixelpolygons/data/secret/15.in @@ -0,0 +1,11 @@ +10 +.......... +.########. +.########. +.########. +.########. +.########. +.########. +.########. +.########. +.......... diff --git a/problems/pixelpolygons/data/secret/16.ans b/problems/pixelpolygons/data/secret/16.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/16.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/16.in b/problems/pixelpolygons/data/secret/16.in new file mode 100644 index 0000000..bc035cf --- /dev/null +++ b/problems/pixelpolygons/data/secret/16.in @@ -0,0 +1,10 @@ +9 +......... +.#######. +.#######. +.#######. +.#######. +.#######. +.#######. +.#######. +......... diff --git a/problems/pixelpolygons/data/secret/2.ans b/problems/pixelpolygons/data/secret/2.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/2.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/2.in b/problems/pixelpolygons/data/secret/2.in new file mode 100644 index 0000000..55bb639 --- /dev/null +++ b/problems/pixelpolygons/data/secret/2.in @@ -0,0 +1,6 @@ +5 +..... +.###. +.###. +.###. +..... diff --git a/problems/pixelpolygons/data/secret/3.ans b/problems/pixelpolygons/data/secret/3.ans new file mode 100644 index 0000000..1e8b314 --- /dev/null +++ b/problems/pixelpolygons/data/secret/3.ans @@ -0,0 +1 @@ +6 diff --git a/problems/pixelpolygons/data/secret/3.in b/problems/pixelpolygons/data/secret/3.in new file mode 100644 index 0000000..1c92de6 --- /dev/null +++ b/problems/pixelpolygons/data/secret/3.in @@ -0,0 +1,5 @@ +4 +.... +.##. +.#.. +.... diff --git a/problems/pixelpolygons/data/secret/4.ans b/problems/pixelpolygons/data/secret/4.ans new file mode 100644 index 0000000..1e8b314 --- /dev/null +++ b/problems/pixelpolygons/data/secret/4.ans @@ -0,0 +1 @@ +6 diff --git a/problems/pixelpolygons/data/secret/4.in b/problems/pixelpolygons/data/secret/4.in new file mode 100644 index 0000000..505f514 --- /dev/null +++ b/problems/pixelpolygons/data/secret/4.in @@ -0,0 +1,6 @@ +5 +..... +.##.. +.###. +.###. +..... diff --git a/problems/pixelpolygons/data/secret/5.ans b/problems/pixelpolygons/data/secret/5.ans new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/problems/pixelpolygons/data/secret/5.ans @@ -0,0 +1 @@ +12 diff --git a/problems/pixelpolygons/data/secret/5.in b/problems/pixelpolygons/data/secret/5.in new file mode 100644 index 0000000..9cd8f90 --- /dev/null +++ b/problems/pixelpolygons/data/secret/5.in @@ -0,0 +1,6 @@ +5 +..... +..#.. +.###. +..#.. +..... diff --git a/problems/pixelpolygons/data/secret/6.ans b/problems/pixelpolygons/data/secret/6.ans new file mode 100644 index 0000000..48082f7 --- /dev/null +++ b/problems/pixelpolygons/data/secret/6.ans @@ -0,0 +1 @@ +12 diff --git a/problems/pixelpolygons/data/secret/6.in b/problems/pixelpolygons/data/secret/6.in new file mode 100644 index 0000000..5c3da6b --- /dev/null +++ b/problems/pixelpolygons/data/secret/6.in @@ -0,0 +1,6 @@ +5 +..... +.#.#. +.###. +.#.#. +..... diff --git a/problems/pixelpolygons/data/secret/7.ans b/problems/pixelpolygons/data/secret/7.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/7.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/7.in b/problems/pixelpolygons/data/secret/7.in new file mode 100644 index 0000000..e9b11d7 --- /dev/null +++ b/problems/pixelpolygons/data/secret/7.in @@ -0,0 +1,4 @@ +3 +... +.#. +... diff --git a/problems/pixelpolygons/data/secret/8.ans b/problems/pixelpolygons/data/secret/8.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/8.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/8.in b/problems/pixelpolygons/data/secret/8.in new file mode 100644 index 0000000..f995c25 --- /dev/null +++ b/problems/pixelpolygons/data/secret/8.in @@ -0,0 +1,6 @@ +5 +..... +..... +..... +.#... +..... diff --git a/problems/pixelpolygons/data/secret/9.ans b/problems/pixelpolygons/data/secret/9.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/pixelpolygons/data/secret/9.ans @@ -0,0 +1 @@ +4 diff --git a/problems/pixelpolygons/data/secret/9.in b/problems/pixelpolygons/data/secret/9.in new file mode 100644 index 0000000..e3b47bf --- /dev/null +++ b/problems/pixelpolygons/data/secret/9.in @@ -0,0 +1,6 @@ +5 +..... +...#. +...#. +...#. +..... diff --git a/problems/pixelpolygons/domjudge-problem.ini b/problems/pixelpolygons/domjudge-problem.ini new file mode 100644 index 0000000..4c075e7 --- /dev/null +++ b/problems/pixelpolygons/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Pixel Polygons" +timelimit = 3 +points = 2 diff --git a/problems/pixelpolygons/problem.pdf b/problems/pixelpolygons/problem.pdf Binary files differnew file mode 100644 index 0000000..b1685d2 --- /dev/null +++ b/problems/pixelpolygons/problem.pdf |