結果
| 問題 | No.651 E869120 and Driving |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-28 22:47:38 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 441 bytes |
| 記録 | |
| コンパイル時間 | 2,065 ms |
| コンパイル使用メモリ | 103,296 KB |
| 実行使用メモリ | 17,664 KB |
| 最終ジャッジ日時 | 2024-10-02 22:37:21 |
| 合計ジャッジ時間 | 2,949 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
namespace _0651
{
class Program
{
static void Main(string[] args)
{
var a = int.Parse(Console.ReadLine());
var t = (int)(a / 100.0 * 60);
var dt = new DateTime(2021,1,1,10,0,0);
var ts = new TimeSpan(t/60,t%60,0);
dt += ts;
Console.WriteLine(string.Format("{0}:{1:D2}",dt.Hour, dt.Minute));
}
}
}