結果

問題 No.111 あばばばば
ユーザー らっしー(raccy)らっしー(raccy)
提出日時 2014-12-23 23:50:56
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 50 bytes
コンパイル時間 403 ms
コンパイル使用メモリ 11,344 KB
実行使用メモリ 19,644 KB
最終ジャッジ日時 2023-09-02 22:17:13
合計ジャッジ時間 7,294 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
19,528 KB
testcase_01 AC 81 ms
15,088 KB
testcase_02 AC 93 ms
15,148 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=(gets.to_i-1)/2;puts (1..n).inject{|s,i|s+i}*2-n
0