結果

問題 No.276 連続する整数の和(1)
ユーザー simansiman
提出日時 2015-11-03 01:06:06
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 38 bytes
コンパイル時間 60 ms
コンパイル使用メモリ 11,464 KB
実行使用メモリ 19,624 KB
最終ジャッジ日時 2023-10-11 13:01:34
合計ジャッジ時間 2,938 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

x=gets.to_i
p x.gcd((1..x).inject(:+))
0