結果

問題 No.276 連続する整数の和(1)
ユーザー RinRin
提出日時 2015-09-05 10:55:20
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 18 ms / 1,000 ms
コード長 202 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 7,092 KB
実行使用メモリ 13,660 KB
最終ジャッジ日時 2023-09-26 08:46:14
合計ジャッジ時間 1,497 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
11,740 KB
testcase_01 AC 18 ms
13,660 KB
testcase_02 AC 17 ms
11,660 KB
testcase_03 AC 18 ms
11,716 KB
testcase_04 AC 17 ms
11,652 KB
testcase_05 AC 17 ms
11,812 KB
testcase_06 AC 18 ms
11,844 KB
testcase_07 AC 18 ms
11,632 KB
testcase_08 AC 18 ms
11,656 KB
testcase_09 AC 18 ms
11,816 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