結果
| 問題 | 
                            No.512 魔法少女の追いかけっこ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             pirorirori_n712
                         | 
                    
| 提出日時 | 2018-08-25 04:47:43 | 
| 言語 | C#(csc)  (csc 3.9.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 533 bytes | 
| コンパイル時間 | 2,041 ms | 
| コンパイル使用メモリ | 112,152 KB | 
| 実行使用メモリ | 29,028 KB | 
| 最終ジャッジ日時 | 2024-06-23 23:06:17 | 
| 合計ジャッジ時間 | 4,613 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 52 WA * 1 | 
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Linq;
class No512{
    static void Main(){
        var speed=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray();
        var count=Int32.Parse(Console.ReadLine());
        var distance=Console.ReadLine().Split(' ').Select(x=>Int32.Parse(x)).ToArray();
        var ans="YES";
        for(int i=1;i<count;++i){
            if(distance[i-1]*100/speed[0]>distance[i]*100/speed[1]){
                ans="NO";
                break;
            }
        }
        Console.WriteLine(ans);
    }
}
            
            
            
        
            
pirorirori_n712