diff options
Diffstat (limited to 'problems/budgettraveler')
23 files changed, 211 insertions, 0 deletions
diff --git a/problems/budgettraveler/attachments/template.c b/problems/budgettraveler/attachments/template.c new file mode 100644 index 0000000..4d569ff --- /dev/null +++ b/problems/budgettraveler/attachments/template.c @@ -0,0 +1,22 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + int n; + scanf("%d", &n); + for (int i = 0; i < n; i++) { + int x; + int y; + scanf("%d%d", &x, &y); + } + + // 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/budgettraveler/attachments/template.cpp b/problems/budgettraveler/attachments/template.cpp new file mode 100644 index 0000000..333402d --- /dev/null +++ b/problems/budgettraveler/attachments/template.cpp @@ -0,0 +1,22 @@ +#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++) { + int x; + int y; + cin >> x >> y; 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/budgettraveler/attachments/template.java b/problems/budgettraveler/attachments/template.java new file mode 100644 index 0000000..16d6678 --- /dev/null +++ b/problems/budgettraveler/attachments/template.java @@ -0,0 +1,20 @@ +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(); + for (int i = 0; i < n; i++) { + int x = in.nextInt(); + int y = in.nextInt(); + } + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("answer"); + } +} diff --git a/problems/budgettraveler/attachments/template.js b/problems/budgettraveler/attachments/template.js new file mode 100644 index 0000000..3ad3bac --- /dev/null +++ b/problems/budgettraveler/attachments/template.js @@ -0,0 +1,11 @@ +const n = parseInt(readline()); +for (let i = 0; i < n; i++) { + var inputs = readline().split(' '); + const x = parseInt(inputs[0]); + const y = parseInt(inputs[1]); +} + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('answer'); diff --git a/problems/budgettraveler/attachments/template.py b/problems/budgettraveler/attachments/template.py new file mode 100644 index 0000000..235276d --- /dev/null +++ b/problems/budgettraveler/attachments/template.py @@ -0,0 +1,11 @@ +import sys +import math + +n = int(input()) +for i in range(n): + x, y = [int(j) for j in input().split()] + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("answer") diff --git a/problems/budgettraveler/data/secret/1.ans b/problems/budgettraveler/data/secret/1.ans new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/problems/budgettraveler/data/secret/1.ans @@ -0,0 +1 @@ +1 diff --git a/problems/budgettraveler/data/secret/1.in b/problems/budgettraveler/data/secret/1.in new file mode 100644 index 0000000..2a8ae89 --- /dev/null +++ b/problems/budgettraveler/data/secret/1.in @@ -0,0 +1,4 @@ +3 +1 2 +2 3 +3 1 diff --git a/problems/budgettraveler/data/secret/2.ans b/problems/budgettraveler/data/secret/2.ans new file mode 100644 index 0000000..0cfbf08 --- /dev/null +++ b/problems/budgettraveler/data/secret/2.ans @@ -0,0 +1 @@ +2 diff --git a/problems/budgettraveler/data/secret/2.in b/problems/budgettraveler/data/secret/2.in new file mode 100644 index 0000000..c0cbc06 --- /dev/null +++ b/problems/budgettraveler/data/secret/2.in @@ -0,0 +1,6 @@ +5 +1 1 +2 6 +3 9 +4 3 +5 7 diff --git a/problems/budgettraveler/data/secret/3.ans b/problems/budgettraveler/data/secret/3.ans new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/problems/budgettraveler/data/secret/3.ans @@ -0,0 +1 @@ +4 diff --git a/problems/budgettraveler/data/secret/3.in b/problems/budgettraveler/data/secret/3.in new file mode 100644 index 0000000..c42fe7b --- /dev/null +++ b/problems/budgettraveler/data/secret/3.in @@ -0,0 +1,11 @@ +10 +1 5 +2 1 +3 3 +4 5 +5 3 +6 5 +7 9 +8 7 +9 5 +10 6 diff --git a/problems/budgettraveler/data/secret/4.ans b/problems/budgettraveler/data/secret/4.ans new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/problems/budgettraveler/data/secret/4.ans @@ -0,0 +1 @@ +5 diff --git a/problems/budgettraveler/data/secret/4.in b/problems/budgettraveler/data/secret/4.in new file mode 100644 index 0000000..33b7c59 --- /dev/null +++ b/problems/budgettraveler/data/secret/4.in @@ -0,0 +1,16 @@ +15 +1 3 +2 2 +3 7 +4 3 +5 1 +6 7 +7 6 +8 4 +9 5 +10 6 +11 1 +12 9 +13 10 +14 10 +15 7 diff --git a/problems/budgettraveler/data/secret/5.ans b/problems/budgettraveler/data/secret/5.ans new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/problems/budgettraveler/data/secret/5.ans @@ -0,0 +1 @@ +7 diff --git a/problems/budgettraveler/data/secret/5.in b/problems/budgettraveler/data/secret/5.in new file mode 100644 index 0000000..3fbd709 --- /dev/null +++ b/problems/budgettraveler/data/secret/5.in @@ -0,0 +1,21 @@ +20 +1 5 +2 8 +3 6 +4 6 +5 9 +6 5 +7 6 +8 8 +9 6 +10 10 +11 2 +12 5 +13 2 +14 3 +15 2 +16 5 +17 4 +18 1 +19 10 +20 6 diff --git a/problems/budgettraveler/data/secret/6.ans b/problems/budgettraveler/data/secret/6.ans new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/problems/budgettraveler/data/secret/6.ans @@ -0,0 +1 @@ +8 diff --git a/problems/budgettraveler/data/secret/6.in b/problems/budgettraveler/data/secret/6.in new file mode 100644 index 0000000..94543ed --- /dev/null +++ b/problems/budgettraveler/data/secret/6.in @@ -0,0 +1,26 @@ +25 +1 3 +2 8 +3 8 +4 9 +5 2 +6 5 +7 1 +8 2 +9 6 +10 5 +11 1 +12 5 +13 9 +14 1 +15 4 +16 3 +17 3 +18 6 +19 9 +20 8 +21 8 +22 5 +23 1 +24 2 +25 8 diff --git a/problems/budgettraveler/data/secret/7.ans b/problems/budgettraveler/data/secret/7.ans new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/problems/budgettraveler/data/secret/7.ans @@ -0,0 +1 @@ +7 diff --git a/problems/budgettraveler/data/secret/7.in b/problems/budgettraveler/data/secret/7.in new file mode 100644 index 0000000..46c7016 --- /dev/null +++ b/problems/budgettraveler/data/secret/7.in @@ -0,0 +1,26 @@ +25 +1 6 +2 7 +3 1 +4 9 +5 1 +6 3 +7 9 +8 3 +9 1 +10 2 +11 1 +12 3 +13 6 +14 3 +15 2 +16 9 +17 2 +18 4 +19 7 +20 1 +21 3 +22 6 +23 5 +24 1 +25 6 diff --git a/problems/budgettraveler/data/secret/8.ans b/problems/budgettraveler/data/secret/8.ans new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/problems/budgettraveler/data/secret/8.ans @@ -0,0 +1 @@ +1 diff --git a/problems/budgettraveler/data/secret/8.in b/problems/budgettraveler/data/secret/8.in new file mode 100644 index 0000000..08bccbe --- /dev/null +++ b/problems/budgettraveler/data/secret/8.in @@ -0,0 +1,4 @@ +3 +1 2 +2 4 +3 6 diff --git a/problems/budgettraveler/domjudge-problem.ini b/problems/budgettraveler/domjudge-problem.ini new file mode 100644 index 0000000..b5a1443 --- /dev/null +++ b/problems/budgettraveler/domjudge-problem.ini @@ -0,0 +1,3 @@ +name = "Budget Traveler" +timelimit = 3 +points = 2 diff --git a/problems/budgettraveler/problem.pdf b/problems/budgettraveler/problem.pdf Binary files differnew file mode 100644 index 0000000..c6a40d1 --- /dev/null +++ b/problems/budgettraveler/problem.pdf |