結果
| 問題 | No.652 E869120 and TimeZone |
| コンテスト | |
| ユーザー |
mencotton
|
| 提出日時 | 2018-03-12 14:28:10 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 591 bytes |
| 記録 | |
| コンパイル時間 | 846 ms |
| コンパイル使用メモリ | 103,936 KB |
| 実行使用メモリ | 18,176 KB |
| 最終ジャッジ日時 | 2024-11-07 18:28:45 |
| 合計ジャッジ時間 | 2,707 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 18 WA * 12 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
namespace _652
{
class Program
{
static void Main(string[] args)
{
string[] s = Console.ReadLine().Split();
int a = (int)(60 * (double.Parse(s[2].Substring(3,s[2].Length - 3)) + 0.01)) + 900;
int time = int.Parse(s[0]) * 60 + int.Parse(s[1]); time += a;
int hour = time / 60 % 24;
if (hour < 10) Console.Write(0);
Console.Write(hour + ":");
int minute = time % 60;
if (minute < 10) Console.Write(0);
Console.WriteLine(minute);
}
}
}
mencotton