結果
問題 | No.774 tatyamと素数大富豪 |
ユーザー |
![]() |
提出日時 | 2019-02-21 12:41:27 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 756 ms / 2,000 ms |
コード長 | 184 bytes |
コンパイル時間 | 482 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 59,136 KB |
最終ジャッジ日時 | 2024-11-17 12:44:07 |
合計ジャッジ時間 | 11,590 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 5 |
other | AC * 14 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n Syntax OK
ソースコード
require 'openssl'n = gets.to_ia = gets.chomp.splitans = a.permutation(a.size).map(&:join).uniq.sort_by{|x| x.to_i * -1}.find{|x| OpenSSL::BN.new(x).prime?}puts ans || -1