diff options
Diffstat (limited to 'problems/aweirdclock/attachments')
-rw-r--r-- | problems/aweirdclock/attachments/template.c | 17 | ||||
-rw-r--r-- | problems/aweirdclock/attachments/template.cpp | 17 | ||||
-rw-r--r-- | problems/aweirdclock/attachments/template.java | 16 | ||||
-rw-r--r-- | problems/aweirdclock/attachments/template.js | 6 | ||||
-rw-r--r-- | problems/aweirdclock/attachments/template.py | 9 |
5 files changed, 65 insertions, 0 deletions
diff --git a/problems/aweirdclock/attachments/template.c b/problems/aweirdclock/attachments/template.c new file mode 100644 index 0000000..2f9fd8f --- /dev/null +++ b/problems/aweirdclock/attachments/template.c @@ -0,0 +1,17 @@ +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <stdbool.h> + +int main() +{ + char readable_text[6]; + scanf("%[^\n]", readable_text); + + // Write an answer using printf(). DON'T FORGET THE TRAILING \n + // To debug: fprintf(stderr, "Debug messages...\n"); + + printf("HH:MM\n"); + + return 0; +} diff --git a/problems/aweirdclock/attachments/template.cpp b/problems/aweirdclock/attachments/template.cpp new file mode 100644 index 0000000..b4d0fd0 --- /dev/null +++ b/problems/aweirdclock/attachments/template.cpp @@ -0,0 +1,17 @@ +#include <iostream> +#include <string> +#include <vector> +#include <algorithm> + +using namespace std; + +int main() +{ + string readable_text; + getline(cin, readable_text); + + // Write an answer using cout. DON'T FORGET THE "<< endl" + // To debug: cerr << "Debug messages..." << endl; + + cout << "HH:MM" << endl; +} diff --git a/problems/aweirdclock/attachments/template.java b/problems/aweirdclock/attachments/template.java new file mode 100644 index 0000000..285b023 --- /dev/null +++ b/problems/aweirdclock/attachments/template.java @@ -0,0 +1,16 @@ +import java.util.*; +import java.io.*; +import java.math.*; + +class Solution { + + public static void main(String args[]) { + Scanner in = new Scanner(System.in); + String readableText = in.nextLine(); + + // Write an answer using System.out.println() + // To debug: System.err.println("Debug messages..."); + + System.out.println("HH:MM"); + } +} diff --git a/problems/aweirdclock/attachments/template.js b/problems/aweirdclock/attachments/template.js new file mode 100644 index 0000000..81a29ad --- /dev/null +++ b/problems/aweirdclock/attachments/template.js @@ -0,0 +1,6 @@ +const readableText = readline(); + +// Write an answer using console.log() +// To debug: console.error('Debug messages...'); + +console.log('HH:MM'); diff --git a/problems/aweirdclock/attachments/template.py b/problems/aweirdclock/attachments/template.py new file mode 100644 index 0000000..cb73100 --- /dev/null +++ b/problems/aweirdclock/attachments/template.py @@ -0,0 +1,9 @@ +import sys +import math + +readable_text = input() + +# Write an answer using print +# To debug: print("Debug messages...", file=sys.stderr, flush=True) + +print("HH:MM") |