結果
| 問題 | No.2811 Calculation Within Sequence |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 23:39:05 |
| 言語 | Common Lisp (sbcl 2.6.7) |
| 結果 |
AC
不安定
|
| 実行時間 | 143 ms / 2,000 ms |
| + 118µs | |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 989 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 25,856 KB |
| 最終ジャッジ日時 | 2026-09-19 21:05:45 |
| 合計ジャッジ時間 | 9,053 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 19 SEP 2026 09:05:34 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.065
ソースコード
(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