結果

問題 No.276 連続する整数の和(1)
ユーザー nonokai10nonokai10
提出日時 2018-03-28 23:41:48
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 74 ms / 1,000 ms
コード長 26 bytes
コンパイル時間 32 ms
使用メモリ 13,980 KB
最終ジャッジ日時 2023-01-23 19:08:58
合計ジャッジ時間 1,716 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 73 ms
13,836 KB
testcase_01 AC 74 ms
13,808 KB
testcase_02 AC 73 ms
13,728 KB
testcase_03 AC 72 ms
13,840 KB
testcase_04 AC 72 ms
13,728 KB
testcase_05 AC 72 ms
13,884 KB
testcase_06 AC 73 ms
13,724 KB
testcase_07 AC 73 ms
13,808 KB
testcase_08 AC 73 ms
13,960 KB
testcase_09 AC 73 ms
13,980 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i
p n%2==0?n/2:n
0