結果
問題 |
No.337 P versus NP
|
ユーザー |
|
提出日時 | 2025-03-24 20:12:39 |
言語 | Common Lisp (sbcl 2.5.0) |
結果 |
AC
|
実行時間 | 11 ms / 2,000 ms |
コード長 | 324 bytes |
コンパイル時間 | 370 ms |
コンパイル使用メモリ | 28,692 KB |
実行使用メモリ | 27,796 KB |
最終ジャッジ日時 | 2025-03-24 20:12:41 |
合計ジャッジ時間 | 1,892 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
コンパイルメッセージ
; compiling file "/home/judge/data/code/Main.lisp" (written 24 MAR 2025 08:12:39 PM): ; wrote /home/judge/data/code/Main.fasl ; compilation finished in 0:00:00.025
ソースコード
(defvar N) (defvar P) (defvar temp) (setq temp (read-from-string (concatenate 'string "(" (read-line) ")" ))) (setq N (write-to-string (nth 0 temp))) (setq P (write-to-string (nth 1 temp))) ;(print P) ;(print N) ;(print (type-of P)) ;(print (type-of N)) (format 't "~a~%" (if (or (string= P "0") (string= N "1")) "=" "!="))