結果

問題 No.774 tatyamと素数大富豪
ユーザー neko_the_shadow
提出日時 2019-02-21 12:39:14
言語 Ruby
(3.4.1)
結果
WA  
実行時間 -
コード長 171 bytes
コンパイル時間 185 ms
コンパイル使用メモリ 7,296 KB
実行使用メモリ 58,880 KB
最終ジャッジ日時 2024-11-17 12:40:00
合計ジャッジ時間 11,390 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 3
other AC * 1 WA * 13
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

require 'openssl'

n = gets.to_i
a = gets.chomp.split

ans = a.permutation(a.size)
 .map(&:join)
 .uniq
 .sort_by{|x| x.to_i * -1}
 .find{|x| OpenSSL::BN.new(x)}

puts ans
0