結果

問題 No.36 素数が嫌い!
ユーザー ciel
提出日時 2014-11-16 19:38:08
言語 Ruby
(3.4.1)
結果
AC  
実行時間 1,058 ms / 5,000 ms
コード長 103 bytes
コンパイル時間 334 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 12,928 KB
最終ジャッジ日時 2024-06-27 00:13:02
合計ジャッジ時間 8,158 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 26
権限があれば一括ダウンロードができます
コンパイルメッセージ
ruby: warning: shebang line ending with \r may cause problems
Syntax OK

ソースコード

diff #

#!/usr/bin/ruby
require 'prime'
puts gets.to_i.prime_division.map(&:last).reduce(0,:+)>2 ? :YES : :NO
0