結果
問題 | No.135 とりあえず1次元の問題 |
ユーザー |
![]() |
提出日時 | 2015-01-26 00:07:37 |
言語 | D (dmd 2.109.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 811 ms |
コンパイル使用メモリ | 112,524 KB |
実行使用メモリ | 5,380 KB |
最終ジャッジ日時 | 2024-06-12 02:05:36 |
合計ジャッジ時間 | 1,550 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 WA * 4 RE * 1 |
ソースコード
import std.stdio, std.conv, std.math, std.string, std.range, std.array,std.algorithm;void main(){readln();auto t = readln().strip().split().map!(to!int)().array().sort().uniq().array();auto u = t[1..$];auto v = t[0..$-1];u[] -= v[];u.reduce!min().writeln();}