結果

問題 No.276 連続する整数の和(1)
ユーザー 👑 maimai
提出日時 2016-03-18 14:30:36
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 49 bytes
コンパイル時間 45 ms
使用メモリ 13,984 KB
最終ジャッジ日時 2022-11-24 19:50:28
合計ジャッジ時間 1,771 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 75 ms
13,904 KB
testcase_01 AC 75 ms
13,812 KB
testcase_02 AC 74 ms
13,804 KB
testcase_03 AC 74 ms
13,828 KB
testcase_04 AC 74 ms
13,792 KB
testcase_05 AC 74 ms
13,820 KB
testcase_06 AC 74 ms
13,984 KB
testcase_07 AC 74 ms
13,840 KB
testcase_08 AC 75 ms
13,956 KB
testcase_09 AC 73 ms
13,948 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i

if n%2==0
    p n/2
else
    p n
end
0