結果
問題 | No.143 豆 |
ユーザー |
|
提出日時 | 2016-04-09 21:00:14 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 225 bytes |
コンパイル時間 | 860 ms |
コンパイル使用メモリ | 100,736 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:26:05 |
合計ジャッジ時間 | 1,664 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
import std.stdio, std.conv, std.string, std.range, std.array, std.algorithm;int main(){auto I = readln.strip.split.to!(int[]);auto A = I[0]*I[1] - readln.strip.split.to!(int[]).sum;(A<0 ? -1 : A).writeln;return 0;}