結果
| 問題 |
No.547 未知の言語
|
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-10 16:57:24 |
| 言語 | Common Lisp (sbcl 2.5.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 531 bytes |
| コンパイル時間 | 1,139 ms |
| コンパイル使用メモリ | 27,392 KB |
| 実行使用メモリ | 21,888 KB |
| 最終ジャッジ日時 | 2024-10-10 16:57:26 |
| 合計ジャッジ時間 | 1,714 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 28 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 10 OCT 2024 04:57:23 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.070
ソースコード
; 前からループをして 1 単語ずつ比較する
(defun main (&rest argv)
(declare (ignorable argv))
(let* ((n (read))
(sn (loop repeat n collect (read)))
(tn (loop repeat n collect (read))))
(loop for i below n
for a in sn
for b in tn
while (eql a b)
finally (princ (1+ i))
(terpri)
(princ (string-downcase a))
(terpri)
(princ (string-downcase b))
(terpri))))
(main)
Common Lisp