結果

問題 No.146 試験監督(1)
ユーザー RinRin
提出日時 2015-09-04 19:18:20
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 278 ms / 1,000 ms
コード長 317 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 5,232 KB
実行使用メモリ 17,344 KB
最終ジャッジ日時 2023-09-26 04:22:24
合計ジャッジ時間 2,348 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
17,344 KB
testcase_01 AC 274 ms
15,344 KB
testcase_02 AC 278 ms
15,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define (System.out.println x)
  (begin
    (display x)
    (newline)
  )
)

(let (
      (N (read))
     )
  (let loop(
            (i 0)
            (Sum 0)
           )
    (if (= i N)
        (System.out.println (modulo Sum 1000000007))
        (loop (+ i 1) (+ Sum (* (ceiling (/ (read) 2)) (read))))
    )
  )
)
0