Submission #4015891
Source Code Expand
#pragma warning disable using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Runtime.Serialization.Formatters.Binary; using System.Text; using System.Text.RegularExpressions; using System.Diagnostics; using System.Numerics; using System.Collections; static class MainClass { public static void Main(string[] args) { var N = Console.ReadLine().ToInt32(); var hour = N / 3600; var minsec = N % 3600; var min = minsec / 60; var sec = minsec % 60; Console.WriteLine($"{hour.ToString().PadLeft(2,'0')}:{min.ToString().PadLeft(2, '0')}:{sec.ToString().PadLeft(2, '0')}"); Console.ReadLine(); } #region ライブラリ public static long ToInt64(this string str) => long.Parse(str); public static int ToInt32(this string str) => int.Parse(str); public static BigInteger ToBigInteger(this string str) => BigInteger.Parse(str); public static List<string> SplittedStringToList(this string str) => str.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); public static List<int> SplittedStringToInt32List(this string str) => str.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(x => int.Parse(x)).ToList(); public static List<long> SplittedStringToInt64List(this string str) => str.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(x => long.Parse(x)).ToList(); public static List<BigInteger> SplittedStringToBigInteger(this string str) => str.Split(new[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).Select(x => BigInteger.Parse(x)).ToList(); public const int INF = int.MaxValue / 2; public const long LONGINF = long.MaxValue / 2; public static int Max(params int[] values) { var maxes = -1; for (int i = 0; i < values.Length; i++) { maxes = Math.Max(values[i], maxes); } return maxes; } public static void PrintArray(int[,] array) { for (int i = 0; i < array.GetLength(0); i++) { var sb = new StringBuilder(); for (int j = 0; j < array.GetLength(1); j++) { sb.Append(array[i, j]).Append(" "); } Console.WriteLine(sb.ToString()); } } // public static int[] #endregion }
Submission Info
Submission Time | |
---|---|
Task | B - 入浴時間 |
User | atcorder_eustia |
Language | C# (Mono 4.6.2.0) |
Score | 100 |
Code Size | 2446 Byte |
Status | AC |
Exec Time | 21 ms |
Memory | 11220 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, test_1.txt, test_17977.txt, test_25298.txt, test_36922.txt, test_44309.txt, test_52415.txt, test_60165.txt, test_65487.txt, test_70993.txt, test_80915.txt, test_84810.txt, test_86399.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | AC | 20 ms | 9044 KB |
sample_02.txt | AC | 21 ms | 11092 KB |
test_1.txt | AC | 21 ms | 11092 KB |
test_17977.txt | AC | 20 ms | 9044 KB |
test_25298.txt | AC | 20 ms | 9044 KB |
test_36922.txt | AC | 20 ms | 9044 KB |
test_44309.txt | AC | 21 ms | 11220 KB |
test_52415.txt | AC | 21 ms | 11092 KB |
test_60165.txt | AC | 20 ms | 9044 KB |
test_65487.txt | AC | 21 ms | 11092 KB |
test_70993.txt | AC | 21 ms | 9044 KB |
test_80915.txt | AC | 21 ms | 11092 KB |
test_84810.txt | AC | 20 ms | 9044 KB |
test_86399.txt | AC | 21 ms | 11092 KB |