結果

問題 No.1735 C#
ユーザー eldericaelderica
提出日時 2023-11-10 21:40:04
言語 Common Lisp
(sbcl 2.5.0)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 350 bytes
コンパイル時間 1,781 ms
コンパイル使用メモリ 37,444 KB
実行使用メモリ 30,016 KB
最終ジャッジ日時 2024-09-26 01:17:08
合計ジャッジ時間 2,524 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 26 SEP 2024 01:17:05 AM):

; wrote /home/judge/data/code/Main.fasl
; compilation finished in 0:00:00.023

ソースコード

diff #

(defparameter *semitone*
  (list (cons #\A "A#")
        (cons #\C "C#")
        (cons #\D "D#")
        (cons #\F "F#")
        (cons #\G "G#")
        (cons #\E "F")
        (cons #\B "C")))

(defun solve (s)
  (apply #'concatenate 'string
    (loop for c across s
       collect (cdr (assoc c *semitone*)))))

(format t "~a~%" (solve (read-line)))
0