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