結果

問題 No.774 tatyamと素数大富豪
ユーザー neko_the_shadowneko_the_shadow
提出日時 2019-02-21 12:39:14
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 171 bytes
コンパイル時間 51 ms
コンパイル使用メモリ 7,680 KB
実行使用メモリ 59,136 KB
最終ジャッジ日時 2024-04-28 18:04:49
合計ジャッジ時間 11,166 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 128 ms
18,688 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 130 ms
18,688 KB
testcase_06 WA -
testcase_07 AC 130 ms
18,816 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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