結果

問題 No.1224 I hate Sqrt Inequality
ユーザー motoshiramotoshira
提出日時 2020-09-21 23:48:45
言語 Common Lisp
(sbcl 2.3.8)
結果
WA  
実行時間 -
コード長 330 bytes
コンパイル時間 1,360 ms
コンパイル使用メモリ 30,860 KB
実行使用メモリ 28,920 KB
最終ジャッジ日時 2023-09-07 04:14:56
合計ジャッジ時間 1,571 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 9 ms
24,788 KB
testcase_01 AC 8 ms
22,732 KB
testcase_02 AC 8 ms
22,908 KB
testcase_03 AC 8 ms
22,844 KB
testcase_04 WA -
testcase_05 AC 8 ms
22,752 KB
testcase_06 AC 8 ms
24,816 KB
testcase_07 WA -
testcase_08 AC 8 ms
22,768 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 8 ms
24,796 KB
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 SEP 2023 04:14:53 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.245

ソースコード

diff #

(defun main ()
  (let ((a (read))
        (b (read)))
    (let ((g (lcm 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