diff options
Diffstat (limited to 'problems/whoisleading/attachments')
-rw-r--r-- | problems/whoisleading/attachments/template.c | 23 | ||||
-rw-r--r-- | problems/whoisleading/attachments/template.cpp | 23 | ||||
-rw-r--r-- | problems/whoisleading/attachments/template.java | 20 | ||||
-rw-r--r-- | problems/whoisleading/attachments/template.js | 10 | ||||
-rw-r--r-- | problems/whoisleading/attachments/template.py | 12 |
5 files changed, 88 insertions, 0 deletions
diff --git a/problems/whoisleading/attachments/template.c b/problems/whoisleading/attachments/template.c new file mode 100644 index 0000000..9b6c317 --- /dev/null +++ b/problems/whoisleading/attachments/template.c @@ -0,0 +1,23 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + char teams[101]; + scanf("%[^\n]", teams); fgetc(stdin); + char scores_1[201]; + scanf("%[^\n]", scores_1); fgetc(stdin); + char scores_2[201]; + scanf("%[^\n]", scores_2); + for (int i = 0; i < 2; i++) { + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("Team name: score minutes_leading\n"); + } + + return 0; +} diff --git a/problems/whoisleading/attachments/template.cpp b/problems/whoisleading/attachments/template.cpp new file mode 100644 index 0000000..8162bcb --- /dev/null +++ b/problems/whoisleading/attachments/template.cpp @@ -0,0 +1,23 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + string teams; + getline(cin, teams); + string scores_1; + getline(cin, scores_1); + string scores_2; + getline(cin, scores_2); + for (int i = 0; i < 2; i++) { + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "Team name: score minutes_leading" << endl; + } +} diff --git a/problems/whoisleading/attachments/template.java b/problems/whoisleading/attachments/template.java new file mode 100644 index 0000000..15ddadc --- /dev/null +++ b/problems/whoisleading/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); + String teams = in.nextLine(); + String scores1 = in.nextLine(); + String scores2 = in.nextLine(); + for (int i = 0; i < 2; i++) { + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("Team name: score minutes_leading"); + } + } +} diff --git a/problems/whoisleading/attachments/template.js b/problems/whoisleading/attachments/template.js new file mode 100644 index 0000000..25c3b89 --- /dev/null +++ b/problems/whoisleading/attachments/template.js @@ -0,0 +1,10 @@ +const teams = readline(); +const scores1 = readline(); +const scores2 = readline(); +for (let i = 0; i < 2; i++) { + + // Write an answer using console.log() + // To debug: console.error('Debug messages...'); + + console.log('Team name: score minutes_leading'); +} diff --git a/problems/whoisleading/attachments/template.py b/problems/whoisleading/attachments/template.py new file mode 100644 index 0000000..d09c28e --- /dev/null +++ b/problems/whoisleading/attachments/template.py @@ -0,0 +1,12 @@ +import sys +import math + +teams = input() +scores_1 = input() +scores_2 = input() +for i in range(2): + + # Write an answer using print + # To debug: print("Debug messages...", file=sys.stderr, flush=True) + + print("Team name: score minutes_leading") |