結果

問題 No.16 累乗の加算
ユーザー keiden
提出日時 2024-09-18 13:17:28
言語 Scheme
(Gauche-0.9.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 239 bytes
コンパイル時間 113 ms
コンパイル使用メモリ 5,504 KB
実行使用メモリ 17,024 KB
最終ジャッジ日時 2024-09-18 13:17:30
合計ジャッジ時間 1,228 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

(define yuki16
  (let*
    (
      (x (read))
      (_ (read-line))
      (a (map string->number (string-split (read-line) #\space)))
      (m 1000003)
    )
    (write (modulo (apply + (map (^(f) (expt-mod x f m)) a)) m))
    (newline)))
0