結果

問題 No.512 魔法少女の追いかけっこ
ユーザー fjafjafjafjafjafja
提出日時 2017-07-19 01:37:13
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 500 bytes
コンパイル時間 4,958 ms
コンパイル使用メモリ 72,220 KB
実行使用メモリ 56,560 KB
最終ジャッジ日時 2023-09-09 13:41:57
合計ジャッジ時間 11,347 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,272 KB
testcase_01 AC 118 ms
56,220 KB
testcase_02 WA -
testcase_03 AC 119 ms
56,560 KB
testcase_04 WA -
testcase_05 AC 121 ms
56,008 KB
testcase_06 AC 118 ms
55,628 KB
testcase_07 AC 124 ms
56,196 KB
testcase_08 AC 128 ms
53,980 KB
testcase_09 WA -
testcase_10 AC 126 ms
55,964 KB
testcase_11 AC 123 ms
55,436 KB
testcase_12 AC 123 ms
55,760 KB
testcase_13 AC 126 ms
56,516 KB
testcase_14 AC 123 ms
55,680 KB
testcase_15 AC 125 ms
55,848 KB
testcase_16 AC 120 ms
56,024 KB
testcase_17 AC 124 ms
55,668 KB
testcase_18 AC 118 ms
55,944 KB
testcase_19 AC 126 ms
56,012 KB
testcase_20 AC 117 ms
56,060 KB
testcase_21 AC 127 ms
56,244 KB
testcase_22 AC 116 ms
55,812 KB
testcase_23 AC 118 ms
56,384 KB
testcase_24 WA -
testcase_25 AC 119 ms
55,708 KB
testcase_26 AC 124 ms
55,928 KB
testcase_27 AC 120 ms
56,184 KB
testcase_28 AC 124 ms
56,228 KB
testcase_29 AC 125 ms
55,828 KB
testcase_30 AC 121 ms
56,276 KB
testcase_31 AC 127 ms
55,480 KB
testcase_32 AC 126 ms
55,628 KB
testcase_33 AC 125 ms
55,692 KB
testcase_34 AC 127 ms
55,548 KB
testcase_35 AC 123 ms
55,972 KB
testcase_36 AC 119 ms
56,444 KB
testcase_37 AC 119 ms
56,444 KB
testcase_38 AC 125 ms
56,020 KB
testcase_39 AC 120 ms
55,968 KB
testcase_40 AC 125 ms
56,008 KB
testcase_41 AC 119 ms
55,432 KB
testcase_42 AC 122 ms
55,916 KB
testcase_43 AC 117 ms
55,608 KB
testcase_44 AC 126 ms
55,864 KB
testcase_45 AC 118 ms
55,948 KB
testcase_46 AC 122 ms
55,680 KB
testcase_47 WA -
testcase_48 AC 117 ms
55,664 KB
testcase_49 AC 118 ms
55,876 KB
testcase_50 AC 118 ms
56,020 KB
testcase_51 AC 117 ms
55,628 KB
testcase_52 AC 125 ms
55,768 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class N512
{
	public static void main(String[] args)
	{
		Scanner sc =new Scanner (System.in);
		double X=sc.nextInt();
		double Y=sc.nextInt();
		int N=sc.nextInt();
		int[] A=new int[N];
		for(int i=0;i<N;i++)
		{
			A[i]=sc.nextInt();
		}
		double xtime=0;
		double now=0;
		double next=0;
		String msg="YES";
		for(int i=0;i<N-1;i++)
		{
			now=A[i];
			next=A[i+1];
			xtime=now/X;
			if(xtime*Y>next)
			{
				msg="NO";
			}
		}
		System.out.println(msg);
	}
}
0