結果
| 問題 | No.547 未知の言語 |
| コンテスト | |
| ユーザー |
Common Lisp
|
| 提出日時 | 2024-10-10 16:57:24 |
| 言語 | Common Lisp (sbcl 2.6.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 531 bytes |
| 記録 | |
| コンパイル時間 | 593 ms |
| コンパイル使用メモリ | 29,440 KB |
| 実行使用メモリ | 22,272 KB |
| 最終ジャッジ日時 | 2026-04-26 19:35:22 |
| 合計ジャッジ時間 | 2,203 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 28 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 26 APR 2026 07:35:14 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.018
ソースコード
; 前からループをして 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