結果

問題 No.512 魔法少女の追いかけっこ
ユーザー kimnykimny
提出日時 2017-12-08 21:46:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 887 bytes
コンパイル時間 3,241 ms
コンパイル使用メモリ 95,804 KB
実行使用メモリ 20,788 KB
最終ジャッジ日時 2023-09-09 13:53:21
合計ジャッジ時間 7,407 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,764 KB
testcase_01 AC 58 ms
20,788 KB
testcase_02 AC 57 ms
14,548 KB
testcase_03 AC 56 ms
14,748 KB
testcase_04 AC 57 ms
14,724 KB
testcase_05 AC 56 ms
14,720 KB
testcase_06 AC 56 ms
14,716 KB
testcase_07 AC 56 ms
14,808 KB
testcase_08 AC 57 ms
14,708 KB
testcase_09 AC 57 ms
14,708 KB
testcase_10 AC 57 ms
14,692 KB
testcase_11 AC 56 ms
14,716 KB
testcase_12 AC 56 ms
14,748 KB
testcase_13 AC 56 ms
14,604 KB
testcase_14 AC 57 ms
14,640 KB
testcase_15 AC 56 ms
14,700 KB
testcase_16 AC 57 ms
14,648 KB
testcase_17 AC 57 ms
14,612 KB
testcase_18 AC 56 ms
14,720 KB
testcase_19 AC 57 ms
14,540 KB
testcase_20 AC 57 ms
14,600 KB
testcase_21 AC 57 ms
14,800 KB
testcase_22 AC 57 ms
14,800 KB
testcase_23 AC 56 ms
14,708 KB
testcase_24 AC 57 ms
14,712 KB
testcase_25 AC 57 ms
14,700 KB
testcase_26 AC 56 ms
14,708 KB
testcase_27 AC 57 ms
14,748 KB
testcase_28 AC 56 ms
14,804 KB
testcase_29 AC 56 ms
14,748 KB
testcase_30 AC 56 ms
14,604 KB
testcase_31 AC 56 ms
14,768 KB
testcase_32 AC 57 ms
14,680 KB
testcase_33 AC 56 ms
14,648 KB
testcase_34 AC 56 ms
14,692 KB
testcase_35 AC 56 ms
14,764 KB
testcase_36 AC 56 ms
14,700 KB
testcase_37 AC 56 ms
14,756 KB
testcase_38 AC 56 ms
14,716 KB
testcase_39 AC 56 ms
14,812 KB
testcase_40 AC 60 ms
14,828 KB
testcase_41 AC 56 ms
14,620 KB
testcase_42 AC 56 ms
14,544 KB
testcase_43 AC 56 ms
14,756 KB
testcase_44 AC 57 ms
14,636 KB
testcase_45 AC 57 ms
14,624 KB
testcase_46 AC 57 ms
14,740 KB
testcase_47 AC 56 ms
14,628 KB
testcase_48 AC 56 ms
14,616 KB
testcase_49 AC 56 ms
14,740 KB
testcase_50 AC 56 ms
14,800 KB
testcase_51 AC 56 ms
14,716 KB
testcase_52 AC 57 ms
14,684 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.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoder_512 {
    class Program {
        static void Main(string[] args) {
            string[] s = Console.ReadLine().Split(' ');
            double x = double.Parse(s[0]);
            double y = double.Parse(s[1]);
            int n = int.Parse(Console.ReadLine());
            double[] a = new double[n];
            string[] t = Console.ReadLine().Split(' ');
            for(int i = 0; i < t.Length; i++) {
                a[i] = double.Parse(t[i]);
            }
            int judge = 0;
            for(int i = 1; i < t.Length; i++) {
                if (a[i] / y < a[i - 1] / x) judge++;
            }
            if (judge > 0) Console.WriteLine("NO");
            else Console.WriteLine("YES");
            Console.ReadLine();
        }
    }
}
0