結果

問題 No.512 魔法少女の追いかけっこ
ユーザー shinwisteriashinwisteria
提出日時 2018-03-13 21:24:05
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 536 bytes
コンパイル時間 3,080 ms
コンパイル使用メモリ 72,356 KB
実行使用メモリ 56,728 KB
最終ジャッジ日時 2023-09-09 14:00:21
合計ジャッジ時間 12,485 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
55,932 KB
testcase_01 AC 140 ms
55,836 KB
testcase_02 AC 160 ms
55,788 KB
testcase_03 AC 139 ms
55,900 KB
testcase_04 AC 150 ms
55,896 KB
testcase_05 AC 141 ms
55,928 KB
testcase_06 AC 136 ms
56,068 KB
testcase_07 AC 146 ms
56,020 KB
testcase_08 AC 144 ms
56,120 KB
testcase_09 AC 134 ms
55,896 KB
testcase_10 AC 145 ms
55,628 KB
testcase_11 AC 140 ms
55,712 KB
testcase_12 AC 144 ms
56,024 KB
testcase_13 AC 150 ms
56,504 KB
testcase_14 AC 141 ms
55,944 KB
testcase_15 AC 138 ms
55,976 KB
testcase_16 AC 137 ms
56,268 KB
testcase_17 AC 143 ms
55,720 KB
testcase_18 AC 133 ms
56,288 KB
testcase_19 AC 149 ms
55,680 KB
testcase_20 AC 135 ms
55,724 KB
testcase_21 AC 161 ms
56,396 KB
testcase_22 AC 134 ms
55,736 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 137 ms
55,728 KB
testcase_26 AC 145 ms
56,128 KB
testcase_27 AC 139 ms
55,600 KB
testcase_28 AC 135 ms
55,764 KB
testcase_29 AC 145 ms
55,728 KB
testcase_30 AC 139 ms
55,828 KB
testcase_31 AC 147 ms
55,668 KB
testcase_32 AC 147 ms
56,024 KB
testcase_33 AC 154 ms
56,476 KB
testcase_34 AC 161 ms
56,004 KB
testcase_35 AC 144 ms
55,884 KB
testcase_36 AC 137 ms
55,604 KB
testcase_37 AC 140 ms
55,644 KB
testcase_38 AC 146 ms
55,992 KB
testcase_39 AC 150 ms
55,900 KB
testcase_40 WA -
testcase_41 AC 136 ms
55,732 KB
testcase_42 AC 140 ms
56,124 KB
testcase_43 AC 134 ms
55,820 KB
testcase_44 AC 144 ms
55,940 KB
testcase_45 AC 137 ms
55,836 KB
testcase_46 AC 141 ms
55,716 KB
testcase_47 WA -
testcase_48 AC 133 ms
55,944 KB
testcase_49 AC 132 ms
56,012 KB
testcase_50 AC 131 ms
55,692 KB
testcase_51 AC 134 ms
55,732 KB
testcase_52 AC 150 ms
56,116 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con512 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		double x = s.nextDouble() * 50 / 3 , y = s.nextDouble() * 50 / 3;
		int n = s.nextInt();
		double[] a = new double[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextDouble();
		}
		s.close();

		boolean ft = true;
		for(int i = 0;i < n-1;i++){
			if(a[i] / x > a[i+1] / y){
				System.out.println("NO");
				ft = false;
				break;
			}
		}
		if(ft){
			System.out.println("YES");
		}

	}

}
0