結果
問題 |
No.36 素数が嫌い!
|
ユーザー |
|
提出日時 | 2024-09-18 00:41:40 |
言語 | Scheme (Gauche-0.9.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 164 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 30,904 KB |
最終ジャッジ日時 | 2024-09-18 00:41:46 |
合計ジャッジ時間 | 5,896 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 RE * 1 |
other | AC * 26 |
ソースコード
(use math.prime) (use srfi.217) (define yuki36 (let* ((n (read)) (pfs (length (mc-factorize n)))) (display (if (= n 1) "NO\n" (if (<= 3 pfs) "YES\n" "NO\n")))))