結果

問題 No.36 素数が嫌い!
ユーザー はむ吉🐹はむ吉🐹
提出日時 2016-05-19 21:55:36
言語 Scheme
(Gauche-0.9.14)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 163 bytes
コンパイル時間 55 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 24,396 KB
最終ジャッジ日時 2023-09-09 07:37:17
合計ジャッジ時間 4,332 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
24,396 KB
testcase_01 AC 100 ms
22,332 KB
testcase_02 AC 99 ms
22,380 KB
testcase_03 AC 100 ms
22,476 KB
testcase_04 AC 101 ms
22,252 KB
testcase_05 AC 99 ms
22,372 KB
testcase_06 AC 101 ms
22,532 KB
testcase_07 AC 101 ms
22,424 KB
testcase_08 AC 100 ms
22,372 KB
testcase_09 AC 99 ms
22,384 KB
testcase_10 AC 100 ms
22,280 KB
testcase_11 AC 100 ms
22,320 KB
testcase_12 AC 99 ms
22,324 KB
testcase_13 AC 103 ms
22,592 KB
testcase_14 AC 99 ms
22,548 KB
testcase_15 AC 98 ms
22,376 KB
testcase_16 AC 99 ms
22,368 KB
testcase_17 RE -
testcase_18 AC 100 ms
22,288 KB
testcase_19 AC 99 ms
22,464 KB
testcase_20 AC 100 ms
22,304 KB
testcase_21 AC 99 ms
22,324 KB
testcase_22 AC 99 ms
22,468 KB
testcase_23 AC 99 ms
22,480 KB
testcase_24 AC 99 ms
22,280 KB
testcase_25 AC 102 ms
22,392 KB
testcase_26 AC 99 ms
22,320 KB
testcase_27 AC 99 ms
22,336 KB
testcase_28 AC 99 ms
22,388 KB
testcase_29 AC 98 ms
22,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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