結果
問題 | No.1224 I hate Sqrt Inequality |
ユーザー |
![]() |
提出日時 | 2020-09-21 23:59:25 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 428 bytes |
コンパイル時間 | 431 ms |
コンパイル使用メモリ | 32,608 KB |
実行使用メモリ | 21,888 KB |
最終ジャッジ日時 | 2024-06-24 23:06:53 |
合計ジャッジ時間 | 976 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 24 JUN 2024 11:06:51 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.022
ソースコード
(defun judge (k) (loop while (zerop (mod k 2)) do (setq k (floor k 2))) (loop while (zerop (mod k 5)) do (setq k (floor k 5))) (/= k 1)) (defun main () (let ((a (read)) (b (read))) (let ((g (gcd a b))) (let ((b (/ b g))) (if (and (/= b 1) (judge b)) (princ "Yes") (princ "No"))))) (fresh-line)) (main)