結果

問題 No.276 連続する整数の和(1)
ユーザー steek79steek79
提出日時 2015-10-17 23:07:48
言語 Python2
(2.7.18)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 64 bytes
コンパイル時間 61 ms
コンパイル使用メモリ 6,648 KB
実行使用メモリ 7,748 KB
最終ジャッジ日時 2023-09-28 21:50:47
合計ジャッジ時間 1,243 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
7,720 KB
testcase_01 AC 22 ms
7,748 KB
testcase_02 AC 23 ms
7,744 KB
testcase_03 AC 22 ms
7,748 KB
testcase_04 AC 23 ms
7,648 KB
testcase_05 AC 23 ms
7,600 KB
testcase_06 AC 23 ms
7,744 KB
testcase_07 AC 23 ms
7,604 KB
testcase_08 AC 22 ms
7,664 KB
testcase_09 AC 23 ms
7,740 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import fractions

N = input()

print fractions.gcd(N, N*(N+1)/2)
0