結果
| 問題 | No.2811 Calculation Within Sequence |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-06 23:34:19 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 138 ms / 2,000 ms |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 29,312 KB |
| 実行使用メモリ | 22,400 KB |
| 最終ジャッジ日時 | 2026-05-07 05:58:30 |
| 合計ジャッジ時間 | 8,602 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 41 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 07 MAY 2026 05:58:21 AM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.141
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((a (read))
(b (read))
(c 0))
(dotimes (_ a)
(setq c (gcd c (read))))
(dotimes (_ b)
(unless (zerop (mod (read) c))
(format t "No~%")
(return-from main)))
(format t "Yes~%")))
(main)
Common Lisp