結果
問題 | No.21 平均の差 |
ユーザー | 6soukiti29 |
提出日時 | 2017-07-27 00:32:15 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 2,528 ms |
コンパイル使用メモリ | 65,872 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-30 01:49:16 |
合計ジャッジ時間 | 3,006 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 26) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import sequtils,strutils,math var N = stdin.readline.parseInt K = stdin.readline.parseInt A = newSeq[int](0) for i in 0..<N: A.add(stdin.readline.parseInt) echo max(A) - min(A)