結果

問題 No.512 魔法少女の追いかけっこ
ユーザー keymoonkeymoon
提出日時 2019-04-19 14:02:27
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 982 bytes
コンパイル時間 2,930 ms
コンパイル使用メモリ 109,896 KB
実行使用メモリ 25,420 KB
最終ジャッジ日時 2023-10-23 17:32:02
合計ジャッジ時間 6,159 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 30 ms
25,392 KB
testcase_07 AC 30 ms
25,392 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 30 ms
25,392 KB
testcase_11 WA -
testcase_12 AC 30 ms
25,392 KB
testcase_13 AC 31 ms
25,400 KB
testcase_14 AC 30 ms
25,392 KB
testcase_15 WA -
testcase_16 AC 30 ms
25,392 KB
testcase_17 AC 30 ms
25,392 KB
testcase_18 AC 30 ms
25,392 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 30 ms
25,392 KB
testcase_22 AC 30 ms
25,392 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 30 ms
25,392 KB
testcase_27 AC 30 ms
25,392 KB
testcase_28 AC 29 ms
25,392 KB
testcase_29 AC 30 ms
25,392 KB
testcase_30 AC 30 ms
25,392 KB
testcase_31 AC 31 ms
25,392 KB
testcase_32 AC 30 ms
25,392 KB
testcase_33 AC 30 ms
25,392 KB
testcase_34 AC 31 ms
25,392 KB
testcase_35 AC 30 ms
25,392 KB
testcase_36 WA -
testcase_37 AC 30 ms
25,392 KB
testcase_38 AC 30 ms
25,392 KB
testcase_39 AC 30 ms
25,392 KB
testcase_40 WA -
testcase_41 AC 30 ms
25,392 KB
testcase_42 AC 29 ms
25,392 KB
testcase_43 WA -
testcase_44 AC 32 ms
25,392 KB
testcase_45 AC 30 ms
25,392 KB
testcase_46 AC 29 ms
25,392 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 31 ms
25,392 KB
testcase_50 AC 30 ms
25,392 KB
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Numerics;
using System.Threading.Tasks;
using System.Text.RegularExpressions;
using static System.Math;
using Debug = System.Diagnostics.Debug;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;


static class P
{
    static void Main()
    {
        var xy = Console.ReadLine().Split().Select(int.Parse).ToArray();
        double x = xy[0];
        double y = xy[1];
        int n = int.Parse(Console.ReadLine());
        var a = Console.ReadLine().Split().Select(int.Parse).ToArray();
        for (int i = 0; i < n - 1; i++)
        {
            if (a[i] / x + 0.00001 > a[i + 1] / y)
            {
                Console.WriteLine("NO");
                return;
            }
        }
        Console.WriteLine("YES");
    }
}
0