結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-12-06 07:32:04 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 189 bytes |
| コンパイル時間 | 109 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 12,800 KB |
| 最終ジャッジ日時 | 2024-09-14 15:12:11 |
| 合計ジャッジ時間 | 8,345 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 RE * 1 |
| other | AC * 14 WA * 12 |
コンパイルメッセージ
Syntax OK
ソースコード
#! ruby # yukicoder My Practice # author: Leonardone @ NEETSDKASU require "prime" n = gets.to_i ps = n.prime_division c = ps.transpose[0].inject(:+) ans = c > 2 ? :YES : :NO puts ans