結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー |
|
提出日時 | 2016-08-27 16:28:18 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 1,069 ms |
コンパイル使用メモリ | 129,920 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-12 03:44:01 |
合計ジャッジ時間 | 1,859 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import std.algorithm, std.array, std.range; import std.string, std.conv; import std.math; import std.stdio, std.typecons; alias Tuple!(int, "s", int, "e") period; void main() { auto n = readln.chomp.to!int; auto li = readln.split.map!(to!int).array; li.sort; auto g = li.group.array; g.multiSort!("a[1] > b[1]", "a[0] > b[0]"); writeln(g[0][0]); }