結果

問題 No.276 連続する整数の和(1)
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-11 20:16:17
言語 Ruby
(3.1.1p18 )
結果
AC  
実行時間 75 ms / 1,000 ms
コード長 37 bytes
コンパイル時間 31 ms
使用メモリ 13,884 KB
最終ジャッジ日時 2023-02-22 17:24:45
合計ジャッジ時間 1,840 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N=gets.to_i
T=N*(N+1)/2
puts T.gcd(N)
0