結果

問題 No.276 連続する整数の和(1)
ユーザー 👑 yumechiyumechi
提出日時 2015-09-04 23:16:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 91 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 12,600 KB
最終ジャッジ日時 2023-09-26 06:33:58
合計ジャッジ時間 2,803 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,776 KB
testcase_01 AC 16 ms
7,848 KB
testcase_02 AC 16 ms
7,780 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = n * (n + 1) // 2
while n > 1:
	if s % n == 0:
		break
	n -= 1
print(n)
0