結果
問題 |
No.1224 I hate Sqrt Inequality
|
ユーザー |
![]() |
提出日時 | 2020-09-21 23:48:45 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 206 ms |
コンパイル使用メモリ | 32,620 KB |
実行使用メモリ | 30,116 KB |
最終ジャッジ日時 | 2024-06-24 22:50:05 |
合計ジャッジ時間 | 978 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 6 WA * 7 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 24 JUN 2024 10:50:03 PM): ; 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.028
ソースコード
(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)