結果

問題 No.1224 I hate Sqrt Inequality
コンテスト
ユーザー motoshira
提出日時 2020-09-21 23:49:31
言語 Common Lisp
(sbcl 2.6.3)
コンパイル:
sbclc _filename_
実行:
sbcl --script Main.fasl
結果
WA  
実行時間 -
コード長 330 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 262 ms
コンパイル使用メモリ 33,528 KB
実行使用メモリ 28,412 KB
最終ジャッジ日時 2026-03-11 03:00:56
合計ジャッジ時間 877 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 9 WA * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 11 MAR 2026 03:00:55 AM):

; file: /home/judge/data/code/Main.lisp
; in: DEFUN MAIN
;     (A (/ A G))
; 
; caught STYLE-WARNING:
;   The variable A is defined but never used.
; 
; compilation unit finished
;   caught 1 STYLE-WARNING condition


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

ソースコード

diff #
raw source code

(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