結果

問題 No.308 素数は通れません
ユーザー cielciel
提出日時 2015-12-02 02:33:40
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 94 bytes
コンパイル時間 291 ms
コンパイル使用メモリ 11,216 KB
実行使用メモリ 15,740 KB
最終ジャッジ日時 2023-10-12 08:47:11
合計ジャッジ時間 14,170 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 90 ms
15,364 KB
testcase_03 AC 90 ms
15,340 KB
testcase_04 AC 92 ms
15,344 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 91 ms
15,356 KB
testcase_08 AC 91 ms
15,352 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 92 ms
15,348 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 AC 92 ms
15,212 KB
testcase_31 AC 91 ms
15,352 KB
testcase_32 WA -
testcase_33 AC 89 ms
15,416 KB
testcase_34 AC 91 ms
15,216 KB
testcase_35 AC 90 ms
15,284 KB
testcase_36 AC 91 ms
15,216 KB
testcase_37 AC 90 ms
15,092 KB
testcase_38 AC 91 ms
15,224 KB
testcase_39 AC 92 ms
15,216 KB
testcase_40 AC 91 ms
15,312 KB
testcase_41 AC 91 ms
15,204 KB
testcase_42 AC 89 ms
15,196 KB
testcase_43 AC 91 ms
15,252 KB
testcase_44 AC 90 ms
15,344 KB
testcase_45 AC 91 ms
15,200 KB
testcase_46 AC 92 ms
15,204 KB
testcase_47 AC 92 ms
15,348 KB
testcase_48 AC 91 ms
15,284 KB
testcase_49 AC 91 ms
15,320 KB
testcase_50 AC 91 ms
15,184 KB
testcase_51 AC 90 ms
15,304 KB
testcase_52 AC 93 ms
15,348 KB
testcase_53 AC 91 ms
15,088 KB
testcase_54 AC 91 ms
15,200 KB
testcase_55 AC 92 ms
15,192 KB
testcase_56 AC 94 ms
15,368 KB
testcase_57 AC 91 ms
15,292 KB
testcase_58 AC 92 ms
15,228 KB
testcase_59 AC 90 ms
15,328 KB
testcase_60 AC 90 ms
15,204 KB
testcase_61 AC 91 ms
15,088 KB
testcase_62 AC 91 ms
15,332 KB
testcase_63 AC 90 ms
15,348 KB
testcase_64 AC 93 ms
15,408 KB
testcase_65 AC 91 ms
15,204 KB
testcase_66 AC 93 ms
15,200 KB
testcase_67 AC 92 ms
15,312 KB
testcase_68 AC 93 ms
15,176 KB
testcase_69 AC 93 ms
15,332 KB
testcase_70 AC 92 ms
15,096 KB
testcase_71 AC 92 ms
15,348 KB
testcase_72 AC 92 ms
15,332 KB
testcase_73 AC 93 ms
15,200 KB
testcase_74 AC 91 ms
15,408 KB
testcase_75 AC 91 ms
15,216 KB
testcase_76 WA -
testcase_77 AC 91 ms
15,304 KB
testcase_78 AC 91 ms
15,224 KB
testcase_79 AC 92 ms
15,212 KB
testcase_80 WA -
testcase_81 WA -
testcase_82 AC 94 ms
15,364 KB
testcase_83 AC 94 ms
15,204 KB
testcase_84 WA -
testcase_85 AC 92 ms
15,200 KB
testcase_86 WA -
testcase_87 WA -
testcase_88 AC 94 ms
15,304 KB
testcase_89 AC 94 ms
15,200 KB
testcase_90 WA -
testcase_91 AC 92 ms
15,276 KB
testcase_92 AC 91 ms
15,104 KB
testcase_93 AC 92 ms
15,208 KB
testcase_94 AC 92 ms
15,248 KB
testcase_95 AC 92 ms
15,188 KB
testcase_96 AC 92 ms
15,420 KB
testcase_97 AC 92 ms
15,296 KB
testcase_98 AC 93 ms
15,084 KB
testcase_99 AC 93 ms
15,536 KB
testcase_100 AC 92 ms
15,628 KB
testcase_101 WA -
testcase_102 AC 93 ms
15,196 KB
testcase_103 AC 93 ms
15,080 KB
testcase_104 AC 93 ms
15,376 KB
testcase_105 AC 92 ms
15,408 KB
testcase_106 AC 92 ms
15,472 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
require 'prime'
N=gets.to_i
if N>45
	p N%8==1&&N.prime? ? 14 : 8
else
	p 7
end
0