結果
| 問題 |
No.716 距離
|
| コンテスト | |
| ユーザー |
_matumo_
|
| 提出日時 | 2018-07-29 23:27:20 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 557 bytes |
| コンパイル時間 | 2,643 ms |
| コンパイル使用メモリ | 106,368 KB |
| 実行使用メモリ | 19,840 KB |
| 最終ジャッジ日時 | 2024-07-19 03:44:22 |
| 合計ジャッジ時間 | 5,852 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 38 |
コンパイルメッセージ
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;
namespace YukiCoder
{
class Program
{
static void Main(string[] args)
{
int nn = int.Parse(Console.ReadLine());
var va = Console.ReadLine().Split().Select(int.Parse).ToList();
var vb = va.Skip(1).Select((n, i) => n - va[i]);
int min = vb.Min();
int max = vb.Max();
Console.WriteLine(min);
Console.WriteLine(max);
Console.ReadLine();
}
}
}
_matumo_