結果
問題 | No.143 豆 |
ユーザー |
![]() |
提出日時 | 2015-02-05 23:52:10 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 265 bytes |
コンパイル時間 | 708 ms |
コンパイル使用メモリ | 100,352 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 02:09:16 |
合計ジャッジ時間 | 1,549 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
import std.stdio, std.conv, std.string, std.range, std.array, std.algorithm;void main(){auto buf = readln().strip().split().map!(to!int)().array;auto A = readln().strip().split().map!(to!int)().array;reduce!"a - b"(buf[0]*buf[1], A).max(-1).writeln();}