結果
| 問題 |
No.21 平均の差
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-12-16 20:45:16 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 813 bytes |
| コンパイル時間 | 822 ms |
| コンパイル使用メモリ | 109,112 KB |
| 実行使用メモリ | 25,432 KB |
| 最終ジャッジ日時 | 2024-12-14 21:54:08 |
| 合計ジャッジ時間 | 1,641 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 10 |
コンパイルメッセージ
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.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
namespace yukicore
{
class Program
{
//no21
static void Main(string[] args)
{
//読み飛ばし
Console.ReadLine();
Console.ReadLine();
//開始
int max = int.MinValue;
int min = int.MaxValue;
while (true)
{
var tmp = Console.ReadLine();
if(tmp=="") break;
int num = int.Parse(tmp);
max = max < num ? num : max;
min = min > num ? num : min;
}
Console.WriteLine(max-min);
}
}
}