結果

問題 No.512 魔法少女の追いかけっこ
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-17 17:08:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 531 bytes
コンパイル時間 2,712 ms
コンパイル使用メモリ 71,100 KB
実行使用メモリ 58,232 KB
最終ジャッジ日時 2023-09-09 13:57:06
合計ジャッジ時間 12,539 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
55,872 KB
testcase_01 AC 141 ms
56,036 KB
testcase_02 AC 147 ms
55,872 KB
testcase_03 AC 142 ms
55,712 KB
testcase_04 WA -
testcase_05 AC 143 ms
56,064 KB
testcase_06 AC 143 ms
55,940 KB
testcase_07 AC 148 ms
56,048 KB
testcase_08 AC 149 ms
55,996 KB
testcase_09 WA -
testcase_10 AC 152 ms
56,080 KB
testcase_11 AC 146 ms
56,092 KB
testcase_12 AC 145 ms
56,048 KB
testcase_13 AC 148 ms
55,992 KB
testcase_14 AC 147 ms
55,704 KB
testcase_15 AC 141 ms
55,968 KB
testcase_16 AC 141 ms
56,216 KB
testcase_17 AC 148 ms
55,964 KB
testcase_18 AC 138 ms
55,964 KB
testcase_19 WA -
testcase_20 AC 142 ms
55,996 KB
testcase_21 AC 149 ms
55,896 KB
testcase_22 AC 140 ms
56,152 KB
testcase_23 AC 140 ms
55,336 KB
testcase_24 AC 150 ms
55,748 KB
testcase_25 AC 141 ms
56,308 KB
testcase_26 AC 146 ms
56,152 KB
testcase_27 AC 143 ms
55,896 KB
testcase_28 AC 142 ms
55,392 KB
testcase_29 AC 149 ms
56,452 KB
testcase_30 AC 144 ms
55,552 KB
testcase_31 AC 147 ms
55,820 KB
testcase_32 AC 149 ms
55,900 KB
testcase_33 AC 150 ms
55,676 KB
testcase_34 AC 148 ms
56,112 KB
testcase_35 AC 146 ms
55,804 KB
testcase_36 AC 140 ms
55,576 KB
testcase_37 AC 140 ms
56,008 KB
testcase_38 AC 148 ms
55,864 KB
testcase_39 AC 146 ms
55,800 KB
testcase_40 AC 150 ms
55,868 KB
testcase_41 AC 143 ms
55,736 KB
testcase_42 AC 146 ms
55,668 KB
testcase_43 AC 142 ms
55,800 KB
testcase_44 AC 146 ms
56,132 KB
testcase_45 AC 142 ms
55,624 KB
testcase_46 AC 147 ms
56,044 KB
testcase_47 AC 149 ms
55,968 KB
testcase_48 AC 139 ms
56,352 KB
testcase_49 AC 141 ms
58,200 KB
testcase_50 AC 143 ms
56,144 KB
testcase_51 WA -
testcase_52 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		double student = sc.nextDouble()*1000/3600;
		double teacher = sc.nextDouble()*1000/3600;
		int n = sc.nextInt();
		double[] intersection = new double[n];
		for (int i=0; i<n; i++) {
			intersection[i] = sc.nextInt();
		}
		
		boolean F = true;
		for (int i=0; i<n-1; i++) {
			if (intersection[i]*teacher > intersection[i+1]*student) {F = false;}
		}
		
		System.out.println(F==true?"YES":"NO");
	}
}
0