結果

問題 No.1224 I hate Sqrt Inequality
ユーザー motoshiramotoshira
提出日時 2020-09-21 23:49:31
言語 Common Lisp
(sbcl 2.3.8)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 1,026 ms
コンパイル使用メモリ 31,044 KB
実行使用メモリ 26,956 KB
最終ジャッジ日時 2023-09-07 04:15:41
合計ジャッジ時間 2,139 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 8 ms
22,768 KB
testcase_01 AC 9 ms
24,836 KB
testcase_02 AC 10 ms
26,956 KB
testcase_03 AC 9 ms
22,852 KB
testcase_04 WA -
testcase_05 AC 9 ms
24,812 KB
testcase_06 AC 9 ms
26,896 KB
testcase_07 AC 10 ms
24,840 KB
testcase_08 WA -
testcase_09 AC 8 ms
22,776 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 10 ms
24,904 KB
testcase_13 AC 9 ms
24,920 KB
testcase_14 AC 9 ms
22,808 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 SEP 2023 04:15:38 AM):
; processing (DEFUN MAIN ...)
; file: /home/judge/data/code/Main.lisp
; in: DEFUN MAIN
;     (LET ((A (/ A G)) (B (/ B G)))
;       (IF (AND (/= B 1) (NOT (ZEROP #)) (NOT (ZEROP #)))
;           (PRINC "Yes")
;           (PRINC "No")))
; 
; caught STYLE-WARNING:
;   The variable A is defined but never used.

; processing (MAIN); 
; compilation unit finished
;   caught 1 STYLE-WARNING condition


; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.193

ソースコード

diff #

(defun main ()
  (let ((a (read))
        (b (read)))
    (let ((g (gcd a b)))
      (let ((a (/ a g))
            (b (/ b g)))
        (if (and (/= b 1)
                 (not (zerop (mod b 2)))
                 (not (zerop (mod b 5))))
            (princ "Yes")
            (princ "No")))))
  (fresh-line))

(main)
0