Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
t
//Rextester.Program.Main is the entry point for your code. Don't change it. //Microsoft (R) Visual C# Compiler version 2.9.0.63208 (958f2354) using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public static string formatAsCustomString(DateTime date, int number) { return number.ToString() + '-' + date.ToString().Replace("-",""); } } class Solution { public static void Main(string[] args) { TextWriter textWriter = new StreamWriter(@System.Environment.GetEnvironmentVariable("OUTPUT_PATH"), true); DateTime date; date = Convert.ToDateTime(Console.ReadLine()); int number = Convert.ToInt32(Console.ReadLine().Trim()); string result = Result.formatAsCustomString(date, number); textWriter.WriteLine(result); textWriter.Flush(); textWriter.Close(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Merge Sample
Imp
timeleft
IComparable extensions: Between
my
thread kill
Math Operations
Understanding For loop and Return functions
mnnjhjhjbhjb
linked list (add to end and beginning, and looking for cycles based on Floyd's algorithm)
Please log in to post a comment.