結果
問題 |
No.143 豆
|
ユーザー |
|
提出日時 | 2016-08-31 00:25:34 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 1 ms / 1,000 ms |
コード長 | 379 bytes |
コンパイル時間 | 700 ms |
コンパイル使用メモリ | 116,172 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 03:56:46 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
import std.algorithm, std.array, std.container, std.range; import std.string, std.conv; import std.numeric, std.math, std.bigint, std.bitmanip, std.random; import std.stdio, std.typecons; void main() { auto rd = readln.split.map!(to!int); auto k = rd[0], n = rd[1], f = rd[2]; auto ai = readln.split.map!(to!int); auto r = k * n - ai.sum; writeln(r >= 0 ? r : -1); }