結果
問題 | No.1058 素敵な数 |
ユーザー | horiesiniti |
提出日時 | 2023-02-07 03:35:51 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 156 bytes |
コンパイル時間 | 250 ms |
コンパイル使用メモリ | 11,304 KB |
実行使用メモリ | 15,388 KB |
最終ジャッジ日時 | 2023-09-18 12:22:59 |
合計ジャッジ時間 | 2,005 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 94 ms
15,384 KB |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
require 'prime' n=gets.to_i if n==1 then puts 1 else p1=100001 ans=1 while n>1 do if p1.prime? then n-=1 ans=p1 end p1+=2 end puts ans end