結果

問題 No.1205 Eye Drops
ユーザー NoNo
提出日時 2020-10-21 16:27:01
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 146 ms / 2,000 ms
コード長 799 bytes
コンパイル時間 1,975 ms
コンパイル使用メモリ 98,288 KB
実行使用メモリ 23,016 KB
最終ジャッジ日時 2023-09-28 14:15:11
合計ジャッジ時間 5,954 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
20,732 KB
testcase_01 AC 59 ms
22,804 KB
testcase_02 AC 60 ms
20,912 KB
testcase_03 AC 59 ms
20,804 KB
testcase_04 AC 58 ms
20,796 KB
testcase_05 AC 60 ms
18,772 KB
testcase_06 AC 59 ms
20,804 KB
testcase_07 AC 58 ms
20,928 KB
testcase_08 AC 58 ms
18,852 KB
testcase_09 AC 60 ms
22,968 KB
testcase_10 AC 59 ms
22,920 KB
testcase_11 AC 59 ms
22,908 KB
testcase_12 AC 58 ms
22,992 KB
testcase_13 AC 59 ms
20,976 KB
testcase_14 AC 58 ms
20,756 KB
testcase_15 AC 60 ms
20,912 KB
testcase_16 AC 59 ms
20,816 KB
testcase_17 AC 58 ms
20,732 KB
testcase_18 AC 59 ms
20,908 KB
testcase_19 AC 58 ms
20,804 KB
testcase_20 AC 60 ms
20,780 KB
testcase_21 AC 58 ms
22,988 KB
testcase_22 AC 60 ms
21,004 KB
testcase_23 AC 59 ms
22,924 KB
testcase_24 AC 58 ms
23,016 KB
testcase_25 AC 58 ms
22,840 KB
testcase_26 AC 58 ms
22,808 KB
testcase_27 AC 57 ms
20,752 KB
testcase_28 AC 60 ms
22,864 KB
testcase_29 AC 58 ms
20,780 KB
testcase_30 AC 58 ms
22,952 KB
testcase_31 AC 59 ms
22,836 KB
testcase_32 AC 58 ms
22,904 KB
testcase_33 AC 58 ms
20,800 KB
testcase_34 AC 59 ms
20,884 KB
testcase_35 AC 60 ms
20,888 KB
testcase_36 AC 59 ms
20,896 KB
testcase_37 AC 146 ms
22,952 KB
testcase_38 AC 58 ms
20,900 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace a
{
    class a
    {
        static void Main(string[] args)
        {
            var ss = Console.ReadLine().Split();
            var np = 0L;
            var nt = 0L;
            var m = long.Parse(ss[1]);
            var f = true;
            for (int i = 0; i < m; i++)
            {
                ss = Console.ReadLine().Split();
                var t = long.Parse(ss[0]);
                var p = long.Parse(ss[1]);
                if(Math.Abs(t - nt) < Math.Abs(p - np))
                {
                    f = false;
                    break;
                }
                else
                {
                    nt = t;
                    np = p;
                }
            }
            Console.WriteLine("{0}",f ? "Yes":"No");
        }
    }
}

0