結果
| 問題 |
No.774 tatyamと素数大富豪
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-22 00:04:06 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 158 bytes |
| コンパイル時間 | 185 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 13,440 KB |
| 最終ジャッジ日時 | 2024-09-25 09:46:32 |
| 合計ジャッジ時間 | 11,535 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 TLE * 1 |
| other | AC * 10 TLE * 4 |
コンパイルメッセージ
Main.rb:3: warning: assigned but unused variable - n Syntax OK
ソースコード
require 'prime'
n = gets.to_i
a = gets.chomp.split
best = -1
a.permutation do |perm|
i = (perm*"").to_i
best = [best, i].max if i.prime?
end
p best