結果
| 問題 |
No.1229 ラグビーの得点パターン
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-11-01 21:21:33 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 354 bytes |
| コンパイル時間 | 303 ms |
| コンパイル使用メモリ | 37,184 KB |
| 実行使用メモリ | 32,024 KB |
| 最終ジャッジ日時 | 2024-11-01 21:21:35 |
| 合計ジャッジ時間 | 2,019 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | AC * 2 WA * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 01 NOV 2024 09:21:33 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.007
ソースコード
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(a 0))
(loop for i to (floor n 5)
do (loop for j to n
do (loop for k to (floor n 3)
do (when (= n (+ (* i 5) (* j 2) (* k 3)))
(incf a)))))
(format t "~d~%" a)))
(main)
Common Lisp