結果

問題 No.1713 trick or treat!
ユーザー keiden
提出日時 2024-09-16 22:26:57
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 5,120 KB
実行使用メモリ 23,168 KB
最終ジャッジ日時 2024-09-16 22:26:59
合計ジャッジ時間 1,645 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

(use scheme.bitwise)
(use scheme.list)

(define yuki1713
  (let*
    (
      (trick (read))
      (treat (read))
      (fact (^x (apply * (iota x 1 1))))
      (ans (fact (bitwise-ior trick treat)))
    )
    (write ans)
    (newline)))
0