結果

問題 No.1236 長針と短針
ユーザー keymoonkeymoon
提出日時 2020-09-25 21:23:05
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 759 bytes
コンパイル時間 4,885 ms
コンパイル使用メモリ 105,540 KB
実行使用メモリ 26,012 KB
最終ジャッジ日時 2023-09-10 14:50:55
合計ジャッジ時間 7,375 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
23,924 KB
testcase_01 AC 61 ms
19,956 KB
testcase_02 AC 61 ms
21,936 KB
testcase_03 AC 61 ms
21,864 KB
testcase_04 AC 61 ms
21,820 KB
testcase_05 AC 61 ms
26,012 KB
testcase_06 AC 62 ms
23,920 KB
testcase_07 AC 62 ms
23,848 KB
testcase_08 AC 61 ms
21,804 KB
testcase_09 AC 60 ms
20,020 KB
testcase_10 AC 61 ms
23,856 KB
testcase_11 AC 60 ms
19,888 KB
testcase_12 AC 63 ms
23,892 KB
testcase_13 AC 61 ms
21,800 KB
testcase_14 AC 61 ms
21,876 KB
testcase_15 AC 62 ms
21,992 KB
testcase_16 AC 60 ms
21,988 KB
testcase_17 AC 61 ms
21,804 KB
testcase_18 AC 60 ms
19,832 KB
testcase_19 AC 60 ms
19,828 KB
testcase_20 AC 61 ms
23,984 KB
testcase_21 AC 62 ms
21,900 KB
testcase_22 AC 61 ms
21,856 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

public static class P
{
    public static void Main()
    {
        var ab = Console.ReadLine().Split().Select(int.Parse).ToArray();
        var a = ab[0];
        var b = ab[1];
        var now = (a * 60 + b) * 60;
        int i = 0;
        while (true)
        {
            var sec = (int)Floor(i * 60.0 * 60 * 12 / 11);
            if (now <= sec)
            {
                Console.WriteLine(sec - now);
                return;
            }
            i++;
        }
    }
}
0