結果

問題 No.36 素数が嫌い!
ユーザー はむ吉🐹はむ吉🐹
提出日時 2016-03-06 20:58:26
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 664 ms / 5,000 ms
コード長 168 bytes
コンパイル時間 117 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 46,056 KB
最終ジャッジ日時 2023-09-09 07:33:58
合計ジャッジ時間 5,784 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
22,424 KB
testcase_01 AC 109 ms
22,392 KB
testcase_02 AC 97 ms
22,424 KB
testcase_03 AC 97 ms
22,264 KB
testcase_04 AC 98 ms
22,280 KB
testcase_05 AC 98 ms
22,416 KB
testcase_06 AC 99 ms
22,472 KB
testcase_07 AC 97 ms
22,264 KB
testcase_08 AC 97 ms
22,484 KB
testcase_09 AC 97 ms
22,408 KB
testcase_10 AC 99 ms
22,324 KB
testcase_11 AC 100 ms
22,240 KB
testcase_12 AC 101 ms
22,492 KB
testcase_13 AC 664 ms
46,056 KB
testcase_14 AC 103 ms
22,556 KB
testcase_15 AC 102 ms
22,492 KB
testcase_16 AC 100 ms
22,320 KB
testcase_17 AC 101 ms
22,520 KB
testcase_18 AC 99 ms
22,328 KB
testcase_19 AC 100 ms
22,376 KB
testcase_20 AC 119 ms
22,516 KB
testcase_21 AC 100 ms
22,484 KB
testcase_22 AC 100 ms
22,480 KB
testcase_23 AC 100 ms
22,412 KB
testcase_24 AC 195 ms
25,288 KB
testcase_25 AC 99 ms
22,280 KB
testcase_26 AC 100 ms
22,340 KB
testcase_27 AC 97 ms
22,516 KB
testcase_28 AC 101 ms
22,484 KB
testcase_29 AC 102 ms
22,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env gosh
(use math.prime)
(define (judge n)
    (not (length<=? (naive-factorize n) 2))
)
(let* ((n (read)))
    (if (judge n) (print "YES") (print "NO"))
)
0