結果

問題 No.512 魔法少女の追いかけっこ
ユーザー kazapyon27kazapyon27
提出日時 2017-05-15 01:16:52
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 817 bytes
コンパイル時間 3,377 ms
コンパイル使用メモリ 72,436 KB
実行使用メモリ 56,560 KB
最終ジャッジ日時 2023-09-09 13:27:36
合計ジャッジ時間 12,272 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 123 ms
55,588 KB
testcase_04 AC 134 ms
53,676 KB
testcase_05 AC 129 ms
55,592 KB
testcase_06 AC 125 ms
55,796 KB
testcase_07 AC 132 ms
55,788 KB
testcase_08 AC 132 ms
54,240 KB
testcase_09 AC 125 ms
55,380 KB
testcase_10 AC 134 ms
55,812 KB
testcase_11 AC 130 ms
56,560 KB
testcase_12 AC 135 ms
55,560 KB
testcase_13 AC 133 ms
55,488 KB
testcase_14 AC 133 ms
55,756 KB
testcase_15 AC 125 ms
55,964 KB
testcase_16 AC 126 ms
55,780 KB
testcase_17 AC 129 ms
55,724 KB
testcase_18 AC 124 ms
55,920 KB
testcase_19 AC 133 ms
56,108 KB
testcase_20 AC 127 ms
55,856 KB
testcase_21 AC 136 ms
56,204 KB
testcase_22 AC 128 ms
55,652 KB
testcase_23 WA -
testcase_24 AC 135 ms
54,316 KB
testcase_25 AC 128 ms
55,548 KB
testcase_26 AC 133 ms
55,980 KB
testcase_27 AC 128 ms
53,800 KB
testcase_28 AC 126 ms
55,848 KB
testcase_29 AC 133 ms
55,856 KB
testcase_30 AC 129 ms
56,028 KB
testcase_31 AC 132 ms
55,664 KB
testcase_32 AC 134 ms
55,516 KB
testcase_33 AC 135 ms
55,756 KB
testcase_34 AC 135 ms
56,024 KB
testcase_35 AC 131 ms
55,940 KB
testcase_36 AC 126 ms
55,760 KB
testcase_37 AC 127 ms
55,732 KB
testcase_38 AC 133 ms
55,536 KB
testcase_39 AC 129 ms
55,676 KB
testcase_40 AC 133 ms
55,692 KB
testcase_41 AC 130 ms
56,028 KB
testcase_42 AC 131 ms
55,740 KB
testcase_43 WA -
testcase_44 AC 134 ms
55,660 KB
testcase_45 AC 127 ms
55,636 KB
testcase_46 AC 134 ms
55,660 KB
testcase_47 WA -
testcase_48 AC 128 ms
55,556 KB
testcase_49 AC 126 ms
55,956 KB
testcase_50 AC 126 ms
55,956 KB
testcase_51 AC 126 ms
55,488 KB
testcase_52 AC 135 ms
56,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/*No.512 魔法少女の追いかけっこ*/
import java.util.*;
public class No512 {
	public static void main(String[] args) {
		try(Scanner input =new Scanner(System.in)){
			float speed[]=new float[2];
			float rapTime,rapPoint;
			boolean chase=true;
			for(int i=0;i<speed.length;i++){
				speed[i]=input.nextByte()*1000f/3600f;
			}
			byte Intersection=input.nextByte();
			int interval[]=new int[Intersection];
			for(int i=0;i<Intersection;i++){
				interval[i]=input.nextInt();
			}
			for(int i=0;i<interval.length-1;i++){
				rapTime=interval[i]/speed[0];
				rapPoint=speed[1]*rapTime;
				if(rapPoint>interval[i+1]){
					chase=false;
					break;
				}
			}
			if(chase){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0