結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 134 ms
55,536 KB
testcase_01 AC 135 ms
55,832 KB
testcase_02 WA -
testcase_03 AC 136 ms
56,148 KB
testcase_04 AC 140 ms
55,664 KB
testcase_05 AC 137 ms
56,044 KB
testcase_06 AC 134 ms
57,704 KB
testcase_07 AC 139 ms
55,544 KB
testcase_08 AC 142 ms
56,472 KB
testcase_09 AC 133 ms
57,592 KB
testcase_10 AC 141 ms
56,056 KB
testcase_11 WA -
testcase_12 AC 140 ms
56,236 KB
testcase_13 AC 144 ms
56,056 KB
testcase_14 AC 140 ms
56,060 KB
testcase_15 WA -
testcase_16 AC 137 ms
55,964 KB
testcase_17 AC 140 ms
55,772 KB
testcase_18 AC 134 ms
56,340 KB
testcase_19 AC 140 ms
56,356 KB
testcase_20 AC 132 ms
55,900 KB
testcase_21 AC 141 ms
56,260 KB
testcase_22 AC 134 ms
56,372 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 134 ms
55,900 KB
testcase_26 AC 140 ms
56,160 KB
testcase_27 AC 135 ms
56,132 KB
testcase_28 AC 135 ms
56,156 KB
testcase_29 AC 140 ms
56,408 KB
testcase_30 AC 137 ms
55,708 KB
testcase_31 AC 140 ms
56,144 KB
testcase_32 AC 140 ms
55,820 KB
testcase_33 AC 141 ms
56,692 KB
testcase_34 AC 141 ms
56,384 KB
testcase_35 AC 137 ms
56,220 KB
testcase_36 AC 133 ms
56,348 KB
testcase_37 AC 133 ms
56,140 KB
testcase_38 AC 145 ms
56,284 KB
testcase_39 AC 134 ms
56,220 KB
testcase_40 WA -
testcase_41 AC 134 ms
55,828 KB
testcase_42 AC 139 ms
56,404 KB
testcase_43 AC 134 ms
56,336 KB
testcase_44 AC 140 ms
55,788 KB
testcase_45 AC 135 ms
55,948 KB
testcase_46 AC 137 ms
55,920 KB
testcase_47 WA -
testcase_48 AC 133 ms
56,128 KB
testcase_49 AC 133 ms
56,204 KB
testcase_50 AC 133 ms
55,932 KB
testcase_51 AC 134 ms
55,944 KB
testcase_52 AC 142 ms
56,308 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();
		int[] a = new int[n];
		for(int i = 0;i < n;i++){
			a[i] = s.nextInt();
		}
		s.close();

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

	}

}
0