結果
| 問題 | No.2811 Calculation Within Sequence |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 23:39:05 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 262 ms / 2,000 ms |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 815 ms |
| コンパイル使用メモリ | 29,312 KB |
| 実行使用メモリ | 28,544 KB |
| 最終ジャッジ日時 | 2026-05-07 06:05:18 |
| 合計ジャッジ時間 | 7,657 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 MAY 2026 06:05:09 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.094
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((a (read))
(b (read))
(xs (loop repeat a collect (read)))
(d (reduce #'gcd xs))
(ys (loop repeat b collect (read))))
(dolist (y ys)
(unless (zerop (mod y d))
(format t "No~%")
(return-from main)))
(format t "Yes~%")))
(main)
Common Lisp