結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
ooh_23
|
| 提出日時 | 2017-06-05 12:07:05 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,052 bytes |
| コンパイル時間 | 839 ms |
| コンパイル使用メモリ | 106,112 KB |
| 実行使用メモリ | 19,200 KB |
| 最終ジャッジ日時 | 2024-06-27 06:33:41 |
| 合計ジャッジ時間 | 3,543 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace lecture
{
class Program
{
static void Main(string[] args)
{
// 入力
int[] line = Console.ReadLine().Trim().Split(' ').Select(x => int.Parse(x)).ToArray();
int X = line[0];
int Y = line[1];
int N = int.Parse(Console.ReadLine());
int[] Len = Console.ReadLine().Trim().Split(' ').Select(x => int.Parse(x)).ToArray();
bool result = true;
// ああああ
for(int i = 0;i < N - 1; i++)
{
if (Len[i] * Y / X > Len[i+1])
{
result = false;
break;
}
}
// 出力あ
if(result == true)
{
Console.WriteLine("YES");
}
else
{
Console.WriteLine("NO");
}
}
}
}
ooh_23