結果
| 問題 |
No.525 二度寝の季節
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-07 10:30:32 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 1,000 ms |
| コード長 | 622 bytes |
| コンパイル時間 | 860 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 18,176 KB |
| 最終ジャッジ日時 | 2024-09-21 04:51:52 |
| 合計ジャッジ時間 | 3,078 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
string a = Console.ReadLine();
string[] s = a.Split(':');
int t=int.Parse(s[0]);
int m = int.Parse(s[1]);
int e=0;
m += 5;
if (m>=60)
{
e = m / 60;
t +=e;
m = m% 60;
}
if (t == 24)
{
t = 0;
}
Console.WriteLine(string.Format("{0:00}", t) + ":"+ string.Format("{0:00}", m));
}
}
}