結果
| 問題 |
No.36 素数が嫌い!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-07 00:11:26 |
| 言語 | Scheme (Gauche-0.9.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 125 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 17,152 KB |
| 最終ジャッジ日時 | 2024-06-24 22:25:46 |
| 合計ジャッジ時間 | 28,955 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 18 WA * 8 |
ソースコード
(let* ((n (read))) (let1 num (let loop ((i 2) (m n)) (cond ((< n (* i i)) 0) ((= (mod m i) 0) (+ 1 (loop i (div m i)))) (else (loop (+ i 1) m)))) (print (if (> num 2) "YES" "NO"))))