Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
MC
How to find the first index of a sub-string in a given string?
SortedDictionary<TKey, TValue> クラス
Fórum ➡ GroupJoin'ing Books and Orders ♦
Full join
Enumeration
Intuit // C# // listing_4.11 (break // ryad Teylora..)
11.10
program
Generics Base class constraints Doubts
stackse - search stackoverflow differently
Please log in to post a comment.