結果
| 問題 | No.1140 EXPotentiaLLL! |
| コンテスト | |
| ユーザー |
iiljj
|
| 提出日時 | 2020-07-31 23:09:53 |
| 言語 | Ruby (4.0.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 306 ms |
| コンパイル使用メモリ | 9,344 KB |
| 実行使用メモリ | 22,528 KB |
| 最終ジャッジ日時 | 2026-03-28 10:56:39 |
| 合計ジャッジ時間 | 3,964 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 1 |
| other | RE * 12 |
コンパイルメッセージ
Main.rb:8: warning: ambiguous first argument; put parentheses or a space even after `-` operator Syntax OK
ソースコード
#!ruby -ropenssl
t = gets.to_i
t.times {
a, pp = gets.split.map &:to_i
if OpenSSL::BN.new(pp).prime? then
p a-1
else
p -1
end
}
iiljj