結果
| 問題 |
No.512 魔法少女の追いかけっこ
|
| コンテスト | |
| ユーザー |
ooh_21
|
| 提出日時 | 2017-06-01 21:47:48 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 1,105 bytes |
| コンパイル時間 | 863 ms |
| コンパイル使用メモリ | 105,984 KB |
| 実行使用メモリ | 19,968 KB |
| 最終ジャッジ日時 | 2024-06-27 06:32:38 |
| 合計ジャッジ時間 | 3,633 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 53 |
コンパイルメッセージ
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 pj12
{
class Program
{
static void Main(string[] args)
{
float[] speed = Console.ReadLine().Trim().Split(' ').Select(x => float.Parse(x)).ToArray();
float spX = speed[0] * 1000 / 3600;
float spY = speed[1] * 1000 / 3600;
int coner = int.Parse(Console.ReadLine());
String look = "YES";
float[] road = Console.ReadLine().Trim().Split(' ').Select(x => float.Parse(x)).ToArray();
float X = spX, Y = spY;
for(int i = 0;i < road.Length -1 ;i++)
{
double kyori = spY * road[i] / spX;
Console.WriteLine(i + 1);
Console.WriteLine(road[i + 1]);
Console.WriteLine(kyori);
if(kyori > road[i+1])
{
look = "NO";
break;
}
}
Console.WriteLine(look);
}
}
}
ooh_21