結果
| 問題 | No.736 約比 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-10 02:12:50 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 2,000 ms |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 34,196 KB |
| 実行使用メモリ | 22,400 KB |
| 最終ジャッジ日時 | 2026-05-09 12:38:09 |
| 合計ジャッジ時間 | 3,512 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 65 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 09 MAY 2026 12:38:04 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.038
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(a (loop repeat n collect (read)))
(d (reduce #'gcd a)))
(dotimes (i n)
(setf (nth i a) (floor (nth i a) d)))
(format t "~{~d~^:~}~%" a)))
(main)
Common Lisp