結果

問題 No.276 連続する整数の和(1)
ユーザー RinRin
提出日時 2015-09-05 10:55:20
言語 Scheme
(Gauche-0.9.11-p1)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 202 bytes
コンパイル時間 22 ms
使用メモリ 11,452 KB
最終ジャッジ日時 2023-02-17 06:01:12
合計ジャッジ時間 1,236 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 15 ms
11,352 KB
testcase_01 AC 15 ms
11,332 KB
testcase_02 AC 17 ms
11,292 KB
testcase_03 AC 16 ms
11,372 KB
testcase_04 AC 16 ms
11,312 KB
testcase_05 AC 16 ms
11,380 KB
testcase_06 AC 16 ms
11,280 KB
testcase_07 AC 18 ms
11,380 KB
testcase_08 AC 17 ms
11,284 KB
testcase_09 AC 17 ms
11,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

(let (
      (N (read))
     )
  (if (= (modulo N 2) 1)
      (System.out.println N)
      (System.out.println (/ N 2))
  )
)
0