結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-09-08 15:52:12 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 632 bytes |
| コンパイル時間 | 2,921 ms |
| コンパイル使用メモリ | 77,248 KB |
| 実行使用メモリ | 46,860 KB |
| 最終ジャッジ日時 | 2025-09-08 15:52:25 |
| 合計ジャッジ時間 | 10,304 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 22 RE * 31 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
int y = scan.nextInt();
int n = scan.nextInt() ;
int[] list = new int[n];
for(int i = 0 ; i < n ; i++ ){
list[i] = scan.nextInt();
}
boolean flg = true;
for(int i = 0 ; i < n ; i++ ){
if(list[i]*y > list[i+1]*x){
flg = false;
break;
}
}
if(flg){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
Maeda