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