結果
| 問題 | No.525 二度寝の季節 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-28 15:46:16 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 1,000 ms |
| コード長 | 518 bytes |
| コンパイル時間 | 8,153 ms |
| コンパイル使用メモリ | 168,772 KB |
| 実行使用メモリ | 188,364 KB |
| 最終ジャッジ日時 | 2025-11-28 15:46:28 |
| 合計ジャッジ時間 | 12,218 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 33 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (112 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string input = Console.ReadLine()!;
TimeSpan firstTime = TimeSpan.Parse(input);
int hour = firstTime.Hours;
int minute = firstTime.Minutes;
minute += 5;
if (minute >= 60)
{
minute -= 60;
hour += 1;
}
if (hour == 24)
{
hour = 0;
}
Console.WriteLine(String.Format("{0:00}",hour) + ":" + String.Format("{0:00}",minute));
}
}