結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-09-08 15:54:36 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 582 bytes |
| コンパイル時間 | 2,410 ms |
| コンパイル使用メモリ | 77,388 KB |
| 実行使用メモリ | 46,600 KB |
| 最終ジャッジ日時 | 2025-09-08 15:54:47 |
| 合計ジャッジ時間 | 9,742 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 53 |
ソースコード
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];
boolean flg = true;
for(int i = 0 ; i < n ; i++ ){
list[i] = scan.nextInt();
if(flg && i > 0 && list[i-1]*y < list[i]*x){
flg = false;
}
}
if(flg){
System.out.println("Yes");
}else{
System.out.println("No");
}
}
}
Maeda