結果
問題 | No.2811 Calculation Within Sequence |
ユーザー |
![]() |
提出日時 | 2024-11-06 23:34:19 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 376 ms / 2,000 ms |
コード長 | 303 bytes |
コンパイル時間 | 1,053 ms |
コンパイル使用メモリ | 25,856 KB |
実行使用メモリ | 21,888 KB |
最終ジャッジ日時 | 2024-11-06 23:34:32 |
合計ジャッジ時間 | 13,150 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 41 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 06 NOV 2024 11:34:21 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.044
ソースコード
(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)