Submission #201355
Source Code Expand
using System; using System.IO; using System.Text; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using Enu = System.Linq.Enumerable; class Program { void Solve() { long sec = reader.Long(); long h = sec / 3600; long m = sec / 60 % 60; long s = sec % 60; Console.WriteLine(h.ToString("d2") + ":" + m.ToString("d2") + ":" + s.ToString("d2")); Console.ReadLine(); } static void Main() { new Program().Solve(); } Reader reader = new Reader(Console.In); class Reader { private readonly TextReader reader; private readonly char[] separator = new char[] { ' ' }; private readonly StringSplitOptions removeOp = StringSplitOptions.RemoveEmptyEntries; private string[] A = new string[0]; private int i; public Reader(TextReader r) { reader = r; } public bool HasNext() { return Enqueue(); } public string String() { return Dequeue(); } public int Int() { return int.Parse(Dequeue()); } public long Long() { return long.Parse(Dequeue()); } public double Double() { return double.Parse(Dequeue()); } public int[] IntLine() { var s = Line(); return s == "" ? new int[0] : Array.ConvertAll(Split(s), int.Parse); } public int[] IntArray(int N) { return Enumerable.Range(0, N).Select(i => Int()).ToArray(); } public int[][] IntGrid(int H) { return Enumerable.Range(0, H).Select(i => IntLine()).ToArray(); } public string[] StringArray(int N) { return Enumerable.Range(0, N).Select(i => Line()).ToArray(); } public string Line() { return reader.ReadLine().Trim(); } private string[] Split(string s) { return s.Split(separator, removeOp); } private bool Enqueue() { if (i < A.Length) return true; string line = reader.ReadLine(); if (line == null) return false; if (line == "") return Enqueue(); A = Split(line); i = 0; return true; } private string Dequeue() { Enqueue(); return A[i++]; } } }
Submission Info
Submission Time | |
---|---|
Task | B - 入浴時間 |
User | eitaho |
Language | C# (Mono 2.10.8.1) |
Score | 100 |
Code Size | 2198 Byte |
Status | AC |
Exec Time | 145 ms |
Memory | 7840 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | 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 | 141 ms | 7840 KB |
sample_02.txt | AC | 141 ms | 7712 KB |
test_1.txt | AC | 141 ms | 7712 KB |
test_17977.txt | AC | 141 ms | 7752 KB |
test_25298.txt | AC | 140 ms | 7700 KB |
test_36922.txt | AC | 142 ms | 7792 KB |
test_44309.txt | AC | 137 ms | 7752 KB |
test_52415.txt | AC | 144 ms | 7712 KB |
test_60165.txt | AC | 138 ms | 7708 KB |
test_65487.txt | AC | 145 ms | 7688 KB |
test_70993.txt | AC | 140 ms | 7712 KB |
test_80915.txt | AC | 137 ms | 7768 KB |
test_84810.txt | AC | 138 ms | 7712 KB |
test_86399.txt | AC | 139 ms | 7680 KB |