結果

問題 No.1205 Eye Drops
ユーザー cccccc
提出日時 2022-08-08 22:34:06
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 835 bytes
コンパイル時間 13,858 ms
コンパイル使用メモリ 157,812 KB
実行使用メモリ 177,928 KB
最終ジャッジ日時 2023-10-19 10:41:21
合計ジャッジ時間 19,452 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
32,344 KB
testcase_01 AC 80 ms
32,344 KB
testcase_02 AC 79 ms
32,472 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 81 ms
32,344 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 78 ms
32,508 KB
testcase_12 WA -
testcase_13 AC 77 ms
32,412 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 78 ms
32,408 KB
testcase_17 WA -
testcase_18 AC 77 ms
32,396 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 79 ms
32,468 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 AC 79 ms
32,356 KB
testcase_33 AC 78 ms
32,356 KB
testcase_34 AC 77 ms
32,356 KB
testcase_35 AC 78 ms
32,356 KB
testcase_36 AC 78 ms
32,356 KB
testcase_37 WA -
testcase_38 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (111 ms)。
MSBuild のバージョン 17.7.3+8ec440e68 (.NET)
  main -> /home/judge/data/code/bin/Release/net7.0/main.dll
  main -> /home/judge/data/code/bin/Release/net7.0/publish/

ソースコード

diff #

using System;
using System.Linq;

class Program
{
    public static void Main()
    {
        /*
         * N : 連続区間
         * M : 情報個数
         * T : 時刻
         * P : ポイント区間 
         */

        var NM = Console.ReadLine().Split().Select(long.Parse).ToArray();
        int loopCnt = 0;
        int correctCnt = 0;

        for(var i = NM[1]; i > loopCnt; loopCnt++)
        {
            var TP = Console.ReadLine().Split().Select(long.Parse).ToArray();
            if (TP[0] > TP[1])
            {
                correctCnt++;
            }
            else
            {
                break;
            }

        }
        if(correctCnt == NM[1])
        {
            Console.WriteLine("Yes");
        }
        else
        {
            Console.WriteLine("No");
        }
    }
}
0