結果

問題 No.651 E869120 and Driving
コンテスト
ユーザー aaa aa
提出日時 2025-12-03 10:50:22
言語 C#
(.NET 8.0.404)
結果
WA  
実行時間 -
コード長 590 bytes
コンパイル時間 8,414 ms
コンパイル使用メモリ 171,648 KB
実行使用メモリ 189,232 KB
最終ジャッジ日時 2025-12-03 10:50:32
合計ジャッジ時間 9,483 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (114 ミリ秒)。
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #
raw source code

using System.Numerics;

public class Program
{
    public static void Main()
    {
        int num = int.Parse(Console.ReadLine() ?? string.Empty);
        //string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
        //string str = Console.ReadLine() ?? string.Empty;

        double d = (double)num / 100;
        int h = (int)d;
        d -= h;
        d *= 10;
        int m = (int)d;
        m *= 6;
        if(m < 10)
        {
            Console.WriteLine("{0}:0{1}", 10 + h, m);
            return;
        }
        Console.WriteLine("{0}:{1}",10+h,m);
    }
}
0