結果
| 問題 |
No.651 E869120 and Driving
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-28 22:52:17 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 21 ms / 1,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 909 ms |
| コンパイル使用メモリ | 103,168 KB |
| 実行使用メモリ | 17,920 KB |
| 最終ジャッジ日時 | 2024-10-02 22:37:49 |
| 合計ジャッジ時間 | 1,428 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| 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 = a / 10 * 6;
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));
}
}
}