結果

問題 No.378 名声値を稼ごう
ユーザー kokoa1046kokoa1046
提出日時 2017-09-08 11:53:15
言語 Scheme
(Gauche-0.9.13)
結果
AC  
実行時間 18 ms / 2,000 ms
コード長 122 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 5,212 KB
実行使用メモリ 11,776 KB
最終ジャッジ日時 2023-09-12 15:08:38
合計ジャッジ時間 665 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,720 KB
testcase_01 AC 17 ms
11,652 KB
testcase_02 AC 16 ms
11,668 KB
testcase_03 AC 18 ms
11,636 KB
testcase_04 AC 16 ms
11,776 KB
testcase_05 AC 16 ms
11,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(define n (read))
(define (plusx x sum)(if (= x 0)sum(+ sum x (plusx (quotient x 2) sum))))
(print (- (* 2 n)(plusx n 0)))
0