結果
問題 | No.525 二度寝の季節 |
ユーザー |
![]() |
提出日時 | 2017-12-25 23:26:16 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 29 ms / 1,000 ms |
コード長 | 647 bytes |
コンパイル時間 | 784 ms |
コンパイル使用メモリ | 112,996 KB |
実行使用メモリ | 27,320 KB |
最終ジャッジ日時 | 2024-12-17 20:21:34 |
合計ジャッジ時間 | 2,793 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 33 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace template { class Program { static void Main(string[] args) { int[] x = Console.ReadLine().Split(':').Select(int.Parse).ToArray(); TimeSpan ts1 = new TimeSpan(x[0], x[1], 0); TimeSpan ts2 = new TimeSpan(0, 5, 0); ts1 += ts2; Console.Write(ts1.Hours < 10 ? "0" + ts1.Hours.ToString() : ts1.Hours.ToString()); Console.WriteLine(ts1.Minutes < 10 ? ":0" + ts1.Minutes.ToString() : ":" + ts1.Minutes.ToString()); } } }